Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with multi-splitters [modified] Pin
Member 303984329-May-06 20:22
Member 303984329-May-06 20:22 
GeneralRe: Problem with multi-splitters [modified] Pin
Nibu babu thomas29-May-06 20:25
Nibu babu thomas29-May-06 20:25 
GeneralRe: Problem with multi-splitters [modified] Pin
Member 303984329-May-06 22:40
Member 303984329-May-06 22:40 
QuestionHow to register shell extension DLL? Pin
Rostfrei28-May-06 20:35
Rostfrei28-May-06 20:35 
AnswerRe: How to register shell extension DLL? Pin
Cedric Moonen28-May-06 21:18
Cedric Moonen28-May-06 21:18 
GeneralRe: How to register shell extension DLL? Pin
Rostfrei28-May-06 22:47
Rostfrei28-May-06 22:47 
QuestionStatic link error Pin
vivek.s.vivek28-May-06 20:19
vivek.s.vivek28-May-06 20:19 
AnswerRe: Static link error Pin
Cedric Moonen28-May-06 21:02
Cedric Moonen28-May-06 21:02 
AnswerRe: Static link error Pin
ThatsAlok28-May-06 23:11
ThatsAlok28-May-06 23:11 
Questionmulti threads to recv from socket in iocp Pin
followait28-May-06 20:14
followait28-May-06 20:14 
AnswerRe: multi threads to recv from socket in iocp Pin
Roger Stoltz28-May-06 21:17
Roger Stoltz28-May-06 21:17 
Questionassertion errror Pin
Anu_Bala28-May-06 19:58
Anu_Bala28-May-06 19:58 
AnswerRe: assertion errror [modified] Pin
Nibu babu thomas28-May-06 20:05
Nibu babu thomas28-May-06 20:05 
This occurs while using delete to free an allocated block of memory. Mainly because you haven't allocated sufficient amount of memory.

Step through the code to find out where this happens.

An e.g. to reproduce this error

PCHAR pMsg = "Nibu babu thomas is a good boy! OMG!";
 
PCHAR pCh = new CHAR[ strlen( msg ) ]; //this will cause the above message to come when you delete this pointer.
strcpy( pCh, pMsg );
 
delete pCh; //the error.
 
//do it like this
 
PCHAR pCh = new CHAR[ strlen(msg) <code>+ 1</code> ]; //yeap this works.
strcpy( pCh, pMsg );
 
delete pCh; // :)



Nibu thomas
A Developer

Programming tips[^]  My site[^]

GeneralRe: assertion errror [modified] Pin
Stephen Hewitt28-May-06 22:48
Stephen Hewitt28-May-06 22:48 
GeneralRe: assertion errror [modified] Pin
Nibu babu thomas28-May-06 22:57
Nibu babu thomas28-May-06 22:57 
QuestionHow to display data as like 3D Pin
bulgaa28-May-06 19:37
bulgaa28-May-06 19:37 
QuestionRe: How to display data as like 3D Pin
Hamid_RT28-May-06 20:33
Hamid_RT28-May-06 20:33 
QuestionAnimation Pin
Rwabe28-May-06 19:33
Rwabe28-May-06 19:33 
AnswerRe: Animation Pin
Hamid_RT28-May-06 20:51
Hamid_RT28-May-06 20:51 
JokeRe: Animation Pin
Nibu babu thomas28-May-06 20:55
Nibu babu thomas28-May-06 20:55 
GeneralRe: Animation Pin
Hamid_RT28-May-06 21:04
Hamid_RT28-May-06 21:04 
GeneralRe: Animation Pin
Nibu babu thomas28-May-06 21:06
Nibu babu thomas28-May-06 21:06 
GeneralRe: Animation Pin
Hamid_RT28-May-06 21:18
Hamid_RT28-May-06 21:18 
GeneralRe: Animation Pin
Rwabe30-May-06 20:38
Rwabe30-May-06 20:38 
GeneralRe: Animation Pin
Hamid_RT30-May-06 21:24
Hamid_RT30-May-06 21:24 

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.