Click here to Skip to main content
15,914,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Playing a file Pin
CPallini21-Dec-06 21:07
mveCPallini21-Dec-06 21:07 
NewsRe: Playing a file Pin
Rajesh R Subramanian21-Dec-06 21:17
professionalRajesh R Subramanian21-Dec-06 21:17 
AnswerRe: Playing a file Pin
Abhijeet Rajput21-Dec-06 21:36
Abhijeet Rajput21-Dec-06 21:36 
AnswerRe: Playing a file Pin
Hamid_RT22-Dec-06 17:07
Hamid_RT22-Dec-06 17:07 
AnswerRe: Playing a file Pin
Cristian Amarie25-Dec-06 6:03
Cristian Amarie25-Dec-06 6:03 
Questionhow do i deallocate memory using delete ? Pin
Sakthiu21-Dec-06 20:40
Sakthiu21-Dec-06 20:40 
AnswerRe: how do i deallocate memory using delete ? Pin
CPallini21-Dec-06 20:49
mveCPallini21-Dec-06 20:49 
AnswerRe: how do i deallocate memory using delete ? Pin
John R. Shaw21-Dec-06 21:21
John R. Shaw21-Dec-06 21:21 
The odds are that you are over-running the buffer when you are assigning values to it. I have also seen this happen because of an over-run error that occurred some where else in the program and the system is just now flagging it. In the latter case you will have a difficult time finding it.

In the past, I have inserted trace statements at each memory allocation and had it display the amount of memory allocated and the number of values assigned to it. It turned out that the over-run was occurring in an entirely different piece of code and the system only informed me about when trying allocate/deallocate latter on in the code.

Note: That that I have seen compilers allocate a little extra space when compiling for debugging. In my case the buffer was one byte to small an the error only happened when running in release mode.


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: how do i deallocate memory using delete ? Pin
Rage21-Dec-06 22:36
professionalRage21-Dec-06 22:36 
AnswerRe: how do i deallocate memory using delete ? Pin
prasad_som21-Dec-06 21:32
prasad_som21-Dec-06 21:32 
AnswerRe: how do i deallocate memory using delete ? Pin
Cristian Amarie25-Dec-06 6:05
Cristian Amarie25-Dec-06 6:05 
QuestionMicrosoft Unicode Layer? Pin
Atul2321-Dec-06 20:39
Atul2321-Dec-06 20:39 
AnswerRe: Microsoft Unicode Layer? Pin
Rajesh R Subramanian21-Dec-06 21:22
professionalRajesh R Subramanian21-Dec-06 21:22 
AnswerRe: Microsoft Unicode Layer? Pin
John R. Shaw21-Dec-06 21:58
John R. Shaw21-Dec-06 21:58 
QuestionUnicode Problems Pin
kiranin21-Dec-06 20:22
kiranin21-Dec-06 20:22 
AnswerRe: Unicode Problems Pin
Sakthiu21-Dec-06 20:34
Sakthiu21-Dec-06 20:34 
GeneralRe: Unicode Problems Pin
kiranin21-Dec-06 20:39
kiranin21-Dec-06 20:39 
GeneralRe: Unicode Problems Pin
prasad_som21-Dec-06 20:41
prasad_som21-Dec-06 20:41 
GeneralRe: Unicode Problems Pin
kiranin21-Dec-06 20:44
kiranin21-Dec-06 20:44 
AnswerRe: Unicode Problems Pin
Johann Gerell21-Dec-06 21:22
Johann Gerell21-Dec-06 21:22 
GeneralRe: Unicode Problems [modified] Pin
CPallini21-Dec-06 22:50
mveCPallini21-Dec-06 22:50 
QuestionRe: Unicode Problems Pin
kiranin22-Dec-06 0:17
kiranin22-Dec-06 0:17 
AnswerRe: Unicode Problems Pin
CPallini22-Dec-06 2:59
mveCPallini22-Dec-06 2:59 
AnswerRe: Unicode Problems Pin
Cristian Amarie25-Dec-06 6:10
Cristian Amarie25-Dec-06 6:10 
QuestionTree Control Pin
Krishnatv21-Dec-06 20:07
Krishnatv21-Dec-06 20:07 

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.