Click here to Skip to main content
15,897,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionFlexGrid Control in DLL Pin
akshita_1528-May-06 19:26
akshita_1528-May-06 19:26 
Questionstring swaping without temp Pin
Krishnatv28-May-06 19:25
Krishnatv28-May-06 19:25 
AnswerRe: string swaping without temp [modified] Pin
_anil_28-May-06 20:09
_anil_28-May-06 20:09 
GeneralIts not working for strings Pin
Krishnatv28-May-06 20:40
Krishnatv28-May-06 20:40 
GeneralRe: Its not working for strings [modified] Pin
_anil_28-May-06 20:50
_anil_28-May-06 20:50 

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.