199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vinithktp

Hi, I have a question regarding Memory Leak. The below mentioned JSP code can generate any Out of memory exception [CODE] String str = tempStrView.getSTR(); String newStr = str+"'"; String rpcStr = " "; String convStr = newStr.replaceAll("'",rpcStr); [/CODE] Thanks in advance, Vinith

Member Avatar for ~s.o.s~
0
108
Member Avatar for aplh_ucsc

Hi All.. I'm writting my own replacements for the memory allocation/deallocation routines malloc() and free().In that file i'm using some variable names.. So after getting the header file, how can i use those previous variable names which i declared in mymalloc programme in any programme. In my main programme i …

Member Avatar for aplh_ucsc
0
113
Member Avatar for ultimatebuster

Does Anyone know how to add context menu in win explorer on [B]files[/B]? And how do they work? Do they call a command and put the full filename after the command as arguments?

Member Avatar for ckoy
0
114
Member Avatar for ALorenzo91

The problem I am having is that it is out putting employee number not valid while I am typing a valid ID. [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- var emp = new Array ("Billy", "Jill", "Wolfgang", "Xavier", "Antoinette","John") …

Member Avatar for ALorenzo91
0
168
Member Avatar for Manjunath H

I am new to mysql How can we count the number of rows in mysql table

Member Avatar for sunwebsite
0
87
Member Avatar for Abinaya Infy

Hi all, I have two questions. 1) How to refresh a page in jsp even if the javascript is not supported by the browser or if it is disabled? 2) How to get the path of the window in js? Thanks in advance.

Member Avatar for Shanti C
0
122
Member Avatar for phobos666

Hi y'all, I'm new to C and to this community so kindly bear with me. I need to open a txt file using C(only).The thing is I'm able to open it if it is directly inside a drive partition(D:\), but if it is inside a folder then its not opening. …

Member Avatar for phobos666
0
304
Member Avatar for misszeze

hello I am developing a java application, in my application i have to move data with large size from one object to another and i don't know the perfect way to do it so i can save memory and increase the processing speed because performance is very important in my …

Member Avatar for JamesCherrill
0
90
Member Avatar for Nouvelle

I need serious help with Scrollbars. how can i position them so they go exactly where i need them. say on a picture i need it in the circle area how can i get it there and what do i need to do? Could somebody point me in the right …

Member Avatar for julianmoors
0
227
Member Avatar for gpta_varun

Hi All I was going through a code and came across something like --> [CODE] TC_A &tc_a=*(TC_A *)p; [/CODE] Now TC_A is a derived class of another Class 'X' of which p is an instance. Does this mean that a new class instance of TC_A is invoked and contents of …

Member Avatar for gpta_varun
0
135
Member Avatar for Resentful

I'm currently almost done with a new site of mine, but one MySQL insert query is giving me trouble. The error message I am receiving is : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to …

Member Avatar for Resentful
0
94
Member Avatar for xxmp

I have made this stored procedure DELIMITER // DROP PROCEDURE IF EXISTS find_max; CREATE PROCEDURE find_max (IN type INT,OUT maxx INT) BEGIN SELECT max(card_id)+1 INTO maxx FROM cards; END; // DELIMITER; and i want to have this stored procedure DELIMITER // DROP PROCEDURE IF EXISTS add_card; CREATE PROCEDURE add_card (var_member_id …

Member Avatar for xxmp
0
149
Member Avatar for phobos666

Hi, Can anyone tell me how to concatenate two strings in NetBeans using Cygwin and also what is the right header file to be included?

Member Avatar for phobos666
0
102
Member Avatar for ankit.pandey3

<?php require_once('upper.php'); require_once('LoginStatement.php'); require_once('database.php'); echo $error_msg=''; require_once('database.php'); $LoginId=$_COOKIE['LoginIdCookie']; $query="select * from registration where LoginId='$LoginId'"; $result=mysqli_query($dbc,$query); $row=mysqli_fetch_array($result); if(isset($_POST['submit'])) { $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Name=mysqli_real_escape_string($dbc,trim($_POST['Name'])); $Age=mysqli_real_escape_string($dbc,trim($_POST['Age'])); $BloodGroup=mysqli_real_escape_string($dbc,trim($_POST['BloodGroup'])); if(!isset($_POST['Sex'])) { echo 'Please enter Sex<br>'; } else{ $Sex= mysqli_real_escape_string($dbc,trim($_POST['Sex'])); } $Qualification=mysqli_real_escape_string($dbc,trim($_POST['Qualification'])); $ContactNumber=mysqli_real_escape_string($dbc,trim($_POST['ContactNumber'])); $Email=mysqli_real_escape_string($dbc,trim($_POST['Email'])); $Address=mysqli_real_escape_string($dbc,trim($_POST['Address'])); $AboutYourself=mysqli_real_escape_string($dbc,trim($_POST['AboutYourself'])); //$countCheck=count($_POST['checkbox']); //echo $countCheck; //$checkbox=$_POST['checkbox']; //$countCheck=count($checkbox); if(empty($LoginId)){echo 'Please enter Login Id';} elseif(empty($Name)){echo 'Please …

Member Avatar for ankit.pandey3
0
2K
Member Avatar for Petrica7

Hi. What is the fastest way to create a file of a specific size (preferably without writing in it) on a nonNTFS partition..? On a NTFS I use this: [code]var tf: TFileStream; begin .... tf := TFileStream.Create(FileName, fmCreate or fmShareExclusive); tf.Size := [desired value]; tf.Free;[/code] It's very fast. But, for …

Member Avatar for Petrica7
0
424
Member Avatar for haripriyamca05

I have gridview for file download with linkbutton which keeps filename as commandargument and one more column with number of files to be downloaded. Condition is that if have more than one file i redirect to another page otherwise i can download my file there itself. I am having my …

0
113
Member Avatar for daudiam

I can't understand the following statement [QUOTE]The Hotspot VM now implements Thread.yield() using the Windows SwitchToThread() API call. This call makes the current thread give up its current timeslice, but not its entire quantum.[/QUOTE] given at [URL="http://www.javamex.com/tutorials/threads/yield.shtml"]http://www.javamex.com/tutorials/threads/yield.shtml[/URL] I understand that after a thread yields, other threads get a chance to …

Member Avatar for ~s.o.s~
0
694
Member Avatar for varunsara
Member Avatar for Web_Sailor

Hi... I am creating an HTML Table in my JSP page taking values from text file. Now the problem comes when I read the file again to update the Table content. In this case I have to refresh my whole page to see updated Table. :icon_cry: How can I refresh …

Member Avatar for Shanti C
0
1K
Member Avatar for mag12203

I have been able to output a palindrome but now it does so even if it is not a palindrome. Thanks you in advance for any help. ;) [CODE]import java.util.*; public class ec2 { static Scanner kb = new Scanner(System.in); public static void main(String[] args) { String word = " …

Member Avatar for GuruMS
0
135
Member Avatar for Goalatio

I would like to know, because I noticed how slow it can be when called over and over. How would I go about doing [CODE]xor ah,ah int 0x16[/CODE] Without the interrupt? [URL="http://www.youtube.com/watch?v=ZKFY0OivbwE"]Here's a link to my video.. can see small delays keys are pressed quickly or held in near the …

Member Avatar for Goalatio
0
1K
Member Avatar for massivefermion

Hi I've heard in some places that it is possible to write programs in several languages but I have no idea how.Could someone explaint about it? thanks

Member Avatar for rbrt13
0
382
Member Avatar for Techguruwanabe

I need a login that requires user to validate email so that password is sent to email, but my computer crashed and I lost it can anyone help?

Member Avatar for dos_killer
0
97
Member Avatar for faintfascinatio

Hi, Wondering how I would be able to implement an efficient fuzzy match algorithm in either c# or sql. I was using levenshtein's distance for my test data (~10 records) but once I started using a larger data set (~800 records), I realized this may not be the best way …

Member Avatar for kvprajapati
0
113
Member Avatar for ajijacobm

hi Guys, I have problem in populating dropdown list from mysql database. im using html,javascript,and mysql. im not using php. i would like to know, how to populate dropdown list with values from mysql database... Also, it would be better , if you tell me how to send values in …

Member Avatar for ajijacobm
0
77
Member Avatar for UsSy

Would I be telling the truth if I was to say that a [I][B]type [/B][/I]in C# is defined by a [B][I]class[/I][/B]. An example of this is the String class. And with this class, I can make [I][B]instances [/B][/I]of it, for example, a simple variable declaration: [CODE]string myName = "Usmaan";[/CODE] The …

Member Avatar for darkagn
0
141
Member Avatar for arnas

Hi there, I have to make a function valid_dice_selection that helps another function select_dice to check the length of a string and besides that it has to check that the characters in that string only include 'x', 'X' and '-'. Ive gotten so far: Im not sure how to check …

Member Avatar for WaltP
0
206
Member Avatar for UsSy

Can someone, unambiguously and without too much technicality explain to me why would one want to have a Constructor in their program. I understand what a Constructor is, and that it can be overloaded and it's name is the same as the class and it can't have a return type …

Member Avatar for Momerath
0
88
Member Avatar for vbkumar

Write a C++ program that reads N positive integer numbers from the keyboard, calculates and displays the following information. a. Count of all numbers which are greater than 1 and less than 11. If no such numbers are entered, 0 for the count value should be displayed. b. Count of …

Member Avatar for vbkumar
0
147
Member Avatar for public-image

Okay so I have a handy little script that allows me to load pages into a DIV an alternative of 'iframes' although I want my div to load a first page/index page before any other links are clicked on, in an iframe DIV way of putting things I would like …

Member Avatar for public-image
0
94
Member Avatar for python_user

Hi Everyone, I have a problem displaying a dicom image properly on PIL(Python Image Library) I have used the code in the following link [URL="http://code.google.com/p/pydicom/wiki/ViewingImages"]http://code.google.com/p/pydicom/wiki/ViewingImages[/URL] but it shows some blur thing and not shows the correct image when i open the same image in dicombrowser it displays clear image but …

Member Avatar for python_user
0
2K
Member Avatar for ak24

Hello... I want to draw three straight lines on a form. Can you tell me if the following code is correct: [CODE]Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim Line1 As System.Drawing.Graphics Dim PenLine As New System.Drawing.Pen(System.Drawing.Color.Black) Line1 = Me.CreateGraphics Line1.DrawLine(PenLine, 0, 129, 529, 129) …

Member Avatar for ak24
0
642
Member Avatar for JOSheaIV

Okay so I am writting a program that is designed to make scheduling easier at the job I work at right now. Well part of the program is that there is a DB of employees and data that can be edited from the program (pretty straight forward like any program …

Member Avatar for JOSheaIV
0
154
Member Avatar for Resentful

Hello, Daniweb members. I've been watching your community forever, and I finally decided to join it. I am currently designing a bot that can talk to users intelligently. The only issue I am having right now is creating a chat log for my members. I need to be able to …

Member Avatar for diafol
0
108
Member Avatar for thelamb

I'm designing an exception class, but ran into a case where a copy is being made which I don't want (plus, I don't understand why). Consider the following cases: [code=cpp] // 1 Exception e; throw e; // Copy: yes //2 throw Exception(); // Copy: no //3 throw Exception() << "extra …

Member Avatar for thelamb
0
95
Member Avatar for tcollins412

i am learning php and i am trying to insert data into a database from a form using php. here is the php [CODE]<?php include "connecttodb.php"; $name = $_POST['name']; $email = $_POST['email']; $password = $_POST['pass']; $query = "INSERT INTO ******* SET username='$name', password='$password', email='$email'"; mysql_query($query) or die('There was an error …

Member Avatar for hielo
0
131
Member Avatar for azka

Hello, im a bit confused about ASM, i just have a code, i want to add inside it some new instruction, but there isnt enough space for it.... how can i jump to the end of the app and execute it and jump back? is it possible? i got: [CODE]000001: …

Member Avatar for azka
0
109
Member Avatar for Juginx

Hey. I have problem. How i can change options in form2 from form1? [CODE]public: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { this->Form1::Show(); video^ video2 = gcnew video(); video2->Show(); } public: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { video^ video2 = gcnew video(); video2->axWindowsMediaPlayer2->URL=(listBox1->SelectedItem->ToString()); video2->axWindowsMediaPlayer2->Ctlcontrols->play(); }[/CODE] I know it's bad, becouse i open …

Member Avatar for jonsca
0
113
Member Avatar for warlord902

So my problem is that, i have a text area with 3 rows. Its a part of a chat application which receives text from a user. I want to send the text and clear the text area as soon as the user presses the enter key. Now the problem is …

Member Avatar for warlord902
0
1K
Member Avatar for lochnessmonster

im curious is there a difference between const float f = 1.5F; vs. const float f = 1.5; is there a difference??

Member Avatar for Narue
0
447
Member Avatar for sahil1991

hi frndzz..... i was doing some coding in c++ and realise the importance of understanding the basics of data structures.......so i thought of working on it... but,i dont know any good book for it..... it 'll be good if i can find links for some good ebooks ........ thanx in …

Member Avatar for Narue
0
166
Member Avatar for Akill10

Hi, I've started to learn about threads in java. I'm trying to make this simple animation of a rectangle. Where am I going wrong? I was under the impression that if a class implements Runnable, when it is executed, it looks for the start method, which in turn starts the …

Member Avatar for Akill10
0
170
Member Avatar for lelejau

Hi. In C++ ie we can do this: code.cpp [code] #include vars.h main() { if var1 == 1 { printf("ok"); } return true; } [/code] The point is not the code itself, but that #include. I'd like to have a *.cs file containing some numeric variables. But not a Class, …

Member Avatar for ddanbe
0
98
Member Avatar for lee.j.baxter

Hi folks, I just want to be certain on a few things before I continue developing my software (using NASM). I know it seems a bit strange to finally understand addressing AFTER I've already developed a bootstrap loader, but that's the way it's happened!!! :$ I'm currently working in 16-bit …

Member Avatar for Goalatio
0
165
Member Avatar for RossR

Hi all, I want to ask you for little help. I make application in C#. It is made from one main form and it would be great if I can use as a part of it another "small forms" (I want to let user drag them on screen where they …

Member Avatar for williamrojas78
0
136
Member Avatar for Skul'l

I'm trying to make a program to download a file from the internet. it compiles fine. but when i press the button to start the download comes up with this [QUOTE]An exception occurred during a WebClient request.[/QUOTE] heres the source code to it [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using …

Member Avatar for williamrojas78
0
153
Member Avatar for ihatehippies

How do you keep a wx frame from not responding while the code is running in the background? ie a search or other demanding function.

Member Avatar for ihatehippies
0
913
Member Avatar for stevetaylor15

I was just a bit confused about something sorry. If you have two classes, Ribbon1 and ThisAddIN below. How can I call Example()? - All are in the same namespace.. [CODE] public partial class Ribbon1 { private void button1_Click_1(object sender, RibbonControlEventArgs e) { //Call Example() from ThisAddIn Class Example(); } …

Member Avatar for williamrojas78
0
205
Member Avatar for Frederick2

I musn't be thinking about something right (or maybe left)! If I have the number '1', which in binary is this... 1000 0000 ...and I do a right shift on it to get this... 0100 0000 then that should give me '2', not??? Then why doesn't this work... [CODE=C++] #include …

Member Avatar for Fbody
0
147
Member Avatar for c#dummie

how do i sort information in a listbox by name (that is, alphabetical order)? im doing c# programming n using microsoft visual studio .net 2003.

Member Avatar for jugosoft
0
700

The End.