Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmsvc keeps recompiling all Pin
ehh22-Jun-06 9:11
ehh22-Jun-06 9:11 
AnswerRe: msvc keeps recompiling all Pin
PJ Arends22-Jun-06 19:52
professionalPJ Arends22-Jun-06 19:52 
Questionproblem walking all over an array Pin
pblais22-Jun-06 9:04
pblais22-Jun-06 9:04 
AnswerRe: problem walking all over an array Pin
Zac Howland22-Jun-06 9:27
Zac Howland22-Jun-06 9:27 
GeneralRe: problem walking all over an array Pin
pblais22-Jun-06 10:21
pblais22-Jun-06 10:21 
GeneralRe: problem walking all over an array Pin
David Crow23-Jun-06 3:49
David Crow23-Jun-06 3:49 
GeneralRe: problem walking all over an array Pin
pblais23-Jun-06 10:53
pblais23-Jun-06 10:53 
GeneralRe: problem walking all over an array Pin
Zac Howland25-Jun-06 8:45
Zac Howland25-Jun-06 8:45 
Despite the fact that there are a few less than desirable lines of code in there (that is, if the person who originally wrote it was in a code review with me, they wouldn't be enjoying it at the moment), there really doesn't seem to be anything out of the ordinary going on (especially with reference to the heap). My guess is that there are a couple things likely causing your problem:

1) Somewhere, a string operation (sprintf, printf, sscanf, etc) is being used with the wrong type. After a while, your stack gets blown up and overruns your heap (which is where you notice the problem).

and/or

2) Somewhere a block of memory is being placed on the heap (your Dll class maybe), and at some point is being deleted by someone else, but the pointer is never null'ed, so you end up accessing invalid memory. You won't notice a major problem with that until you go to access a section in that memory that has been reallocated for something else (which will make your DLL class look like it is trashed, when in reality it is trying to trash something else).

To debug this, I would start commenting out sections of code to get down to a bare minimal application that works completely. Then, slowly uncomment a section at a time and see when you notice the problem. It is a slow process, but will likely be the most effective in this case.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: problem walking all over an array Pin
pblais26-Jun-06 9:06
pblais26-Jun-06 9:06 
GeneralRe: problem walking all over an array Pin
Zac Howland26-Jun-06 9:28
Zac Howland26-Jun-06 9:28 
GeneralRe: problem walking all over an array Pin
pblais26-Jun-06 10:13
pblais26-Jun-06 10:13 
GeneralRe: problem walking all over an array Pin
Zac Howland26-Jun-06 10:25
Zac Howland26-Jun-06 10:25 
Questionabout printing formulars Pin
ivanris22-Jun-06 8:08
ivanris22-Jun-06 8:08 
Questionmultiple selections in List View (LVS) Pin
aafcls22-Jun-06 8:04
aafcls22-Jun-06 8:04 
AnswerRe: multiple selections in List View (LVS) Pin
Michael Dunn22-Jun-06 8:28
sitebuilderMichael Dunn22-Jun-06 8:28 
GeneralRe: multiple selections in List View (LVS) Pin
aafcls22-Jun-06 8:48
aafcls22-Jun-06 8:48 
GeneralRe: multiple selections in List View (LVS) Pin
Zac Howland22-Jun-06 9:40
Zac Howland22-Jun-06 9:40 
GeneralRe: multiple selections in List View (LVS) Pin
Michael Dunn22-Jun-06 10:45
sitebuilderMichael Dunn22-Jun-06 10:45 
GeneralRe: multiple selections in List View (LVS) Pin
aafcls23-Jun-06 4:02
aafcls23-Jun-06 4:02 
GeneralRe: multiple selections in List View (LVS) Pin
Michael Dunn23-Jun-06 15:01
sitebuilderMichael Dunn23-Jun-06 15:01 
QuestionTypedef Pin
Jay0322-Jun-06 7:59
Jay0322-Jun-06 7:59 
AnswerRe: Typedef Pin
Michael Dunn22-Jun-06 8:29
sitebuilderMichael Dunn22-Jun-06 8:29 
GeneralRe: Typedef Pin
Jay0322-Jun-06 8:36
Jay0322-Jun-06 8:36 
GeneralRe: Typedef Pin
Zac Howland22-Jun-06 9:33
Zac Howland22-Jun-06 9:33 
GeneralRe: Typedef Pin
Michael Dunn22-Jun-06 10:43
sitebuilderMichael Dunn22-Jun-06 10:43 

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.