Click here to Skip to main content
15,895,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Relational Database Pin
moodsey21114-Feb-06 19:43
moodsey21114-Feb-06 19:43 
GeneralRe: Relational Database Pin
Ashutosh_shashi14-Feb-06 22:11
Ashutosh_shashi14-Feb-06 22:11 
QuestionRe: Relational Database Pin
David Crow15-Feb-06 4:12
David Crow15-Feb-06 4:12 
Questionmemory leak!!!!!! Pin
naguu14-Feb-06 18:39
naguu14-Feb-06 18:39 
AnswerRe: memory leak!!!!!! Pin
namaskaaram14-Feb-06 18:42
namaskaaram14-Feb-06 18:42 
AnswerRe: memory leak!!!!!! Pin
Stephen Hewitt14-Feb-06 18:55
Stephen Hewitt14-Feb-06 18:55 
AnswerRe: memory leak!!!!!! Pin
Ashutosh_shashi14-Feb-06 19:20
Ashutosh_shashi14-Feb-06 19:20 
GeneralRe: memory leak!!!!!! Pin
namaskaaram14-Feb-06 19:42
namaskaaram14-Feb-06 19:42 
int main()
{
char *name = getmestring(); --> modify this line
cout<<name<<endl;
if(name != NULL)
{
name = NULL; ---> Add this line
delete [] name; --> this is causing the debug assertion failed..
}
}

assigning name =NULL and then deleting it will give u an error since u r trying to delete a block that points to the null address!!!!rather the code should be more like.....
int main()
{
char *name = NULL;  
name = getmestring(); 
cout<<name<<endl;

if(name != NULL)
delete [] name;

}

cheerz!



dont want,dont want thinking,climbing on head and jumping grass!
(venda venda ennu vicharikumbol thellayill keyaree chadunnoda pulle!)

-- modified at 3:35 Wednesday 15th February, 2006
GeneralRe: memory leak!!!!!! Pin
Ryan Binns14-Feb-06 19:51
Ryan Binns14-Feb-06 19:51 
GeneralRe: memory leak!!!!!! Pin
BadKarma14-Feb-06 20:29
BadKarma14-Feb-06 20:29 
GeneralRe: memory leak!!!!!! Pin
Ryan Binns14-Feb-06 21:27
Ryan Binns14-Feb-06 21:27 
GeneralRe: memory leak!!!!!! Pin
BadKarma14-Feb-06 21:43
BadKarma14-Feb-06 21:43 
GeneralRe: memory leak!!!!!! Pin
Ryan Binns14-Feb-06 21:48
Ryan Binns14-Feb-06 21:48 
GeneralRe: memory leak!!!!!! Pin
namaskaaram14-Feb-06 21:34
namaskaaram14-Feb-06 21:34 
GeneralRe: memory leak!!!!!! Pin
Ryan Binns14-Feb-06 21:44
Ryan Binns14-Feb-06 21:44 
GeneralRe: memory leak!!!!!! Pin
Ashutosh_shashi14-Feb-06 21:18
Ashutosh_shashi14-Feb-06 21:18 
GeneralRe: memory leak!!!!!! Pin
ThatsAlok14-Feb-06 23:11
ThatsAlok14-Feb-06 23:11 
QuestionRe: memory leak!!!!!! Pin
David Crow15-Feb-06 4:15
David Crow15-Feb-06 4:15 
QuestionEncryption Pin
Tony Kurishunkal14-Feb-06 17:41
Tony Kurishunkal14-Feb-06 17:41 
AnswerRe: Encryption Pin
namaskaaram14-Feb-06 18:46
namaskaaram14-Feb-06 18:46 
AnswerRe: Encryption Pin
moodsey21114-Feb-06 19:22
moodsey21114-Feb-06 19:22 
QuestionApplication crashed on client side not on my side Pin
zahid_ash14-Feb-06 17:34
zahid_ash14-Feb-06 17:34 
AnswerRe: Application crashed on client side not on my side Pin
Ashutosh_shashi14-Feb-06 19:30
Ashutosh_shashi14-Feb-06 19:30 
AnswerRe: Application crashed on client side not on my side Pin
kakan14-Feb-06 20:40
professionalkakan14-Feb-06 20:40 
QuestionShared data, functions across DLL Pin
arunperi14-Feb-06 17:22
arunperi14-Feb-06 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.