Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWord Addin specific question Pin
Alex Korchemniy4-Jul-05 10:31
Alex Korchemniy4-Jul-05 10:31 
Generalabt capturing a desktop Pin
Member 19676244-Jul-05 8:09
Member 19676244-Jul-05 8:09 
GeneralRe: abt capturing a desktop Pin
PJ Arends4-Jul-05 9:12
professionalPJ Arends4-Jul-05 9:12 
GeneralRe: abt capturing a desktop Pin
2249174-Jul-05 17:34
2249174-Jul-05 17:34 
GeneralMemory could not be written Pin
jkav4-Jul-05 5:58
jkav4-Jul-05 5:58 
GeneralRe: Memory could not be written Pin
Iain Clarke, Warrior Programmer4-Jul-05 6:06
Iain Clarke, Warrior Programmer4-Jul-05 6:06 
GeneralRe: Memory could not be written Pin
badal_akr4-Jul-05 20:26
badal_akr4-Jul-05 20:26 
GeneralRe: Memory could not be written Pin
David Spain6-Jul-05 3:14
David Spain6-Jul-05 3:14 
It could also be that you are using a pointer to a heap object, 'delete' was called on the pointer, and then this pointer variable was used again a few lines later in the code. The compiler would not catch this I don't believe, but may have given a warning in the compilation if the warning level was set high enough.

Another thing that could be the cause is uninitialized memory. Release mode does not initialize the variables I believe. So you may be using a pointer somewhere that refers to a bogus address.

You may already know this, but one thing you could do is to build it in release mode and run it on your machine, trying exactly what the user did, and see if it breaks for you also. If it does, then you know approximately where in the code it crashed and can look into the code to fix it. You have to run it in release mode, for the reason in the previous paragraph. In fact, for this same reason, one should always test in release mode before shipping.


David Spain, C++ Applications Programmer
GeneralRe: Memory could not be written Pin
David Spain6-Jul-05 3:44
David Spain6-Jul-05 3:44 
GeneralDeleting classes in C++ v7 (.NET) Pin
mcgmil4-Jul-05 5:44
mcgmil4-Jul-05 5:44 
GeneralRe: Deleting classes in C++ v7 (.NET) Pin
RChin4-Jul-05 5:49
RChin4-Jul-05 5:49 
GeneralRe: Deleting classes in C++ v7 (.NET) Pin
mcgmil4-Jul-05 20:55
mcgmil4-Jul-05 20:55 
Questionhow to format usbdisk under win2k? Pin
yqzq4-Jul-05 5:32
yqzq4-Jul-05 5:32 
QuestionHow To Debug dll Pin
4-Jul-05 4:23
suss4-Jul-05 4:23 
AnswerRe: How To Debug dll Pin
Iain Clarke, Warrior Programmer4-Jul-05 5:03
Iain Clarke, Warrior Programmer4-Jul-05 5:03 
AnswerRe: How To Debug dll Pin
2249174-Jul-05 17:39
2249174-Jul-05 17:39 
Generalconnect to mysql 4.1.17 from VS.NET c++ Pin
__horus__4-Jul-05 4:06
__horus__4-Jul-05 4:06 
GeneralRe: connect to mysql 4.1.17 from VS.NET c++ Pin
2249174-Jul-05 6:00
2249174-Jul-05 6:00 
GeneralRe: connect to mysql 4.1.17 from VS.NET c++ Pin
__horus__4-Jul-05 6:36
__horus__4-Jul-05 6:36 
GeneralRe: connect to mysql 4.1.17 from VS.NET c++ Pin
2249174-Jul-05 6:48
2249174-Jul-05 6:48 
Questiondisplaying dialog box in sdi or mdi window? Pin
sayup4-Jul-05 3:46
sayup4-Jul-05 3:46 
AnswerRe: displaying dialog box in sdi or mdi window? Pin
M.Mehrdad.M4-Jul-05 4:37
M.Mehrdad.M4-Jul-05 4:37 
AnswerRe: displaying dialog box in sdi or mdi window? Pin
Jose Lamas Rios4-Jul-05 6:14
Jose Lamas Rios4-Jul-05 6:14 
GeneralHELP: Visual studio .NET compilation error Pin
Member 20930494-Jul-05 3:43
Member 20930494-Jul-05 3:43 
GeneralRe: HELP: Visual studio .NET compilation error Pin
PJ Arends4-Jul-05 9:27
professionalPJ Arends4-Jul-05 9:27 

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.