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

C / C++ / MFC

 
QuestionWindows Vista Pin
San246813-Mar-07 2:41
San246813-Mar-07 2:41 
AnswerRe: Windows Vista Pin
David Crow13-Mar-07 2:45
David Crow13-Mar-07 2:45 
GeneralRe: Windows Vista Pin
San246813-Mar-07 2:57
San246813-Mar-07 2:57 
QuestionRe: Windows Vista Pin
David Crow13-Mar-07 3:05
David Crow13-Mar-07 3:05 
GeneralRe: Windows Vista Pin
Maximilien13-Mar-07 3:19
Maximilien13-Mar-07 3:19 
AnswerRe: Windows Vista Pin
Maximilien13-Mar-07 3:03
Maximilien13-Mar-07 3:03 
AnswerRe: Windows Vista Pin
toxcct13-Mar-07 3:16
toxcct13-Mar-07 3:16 
QuestionHeap Error Pin
baerten13-Mar-07 2:37
baerten13-Mar-07 2:37 
Hi everybody,

since a several time i have great troubles with the DebugHeap.

I put for example 2x new CStatic variables at my view,
so they are at the end of the class declaration :

class MyView
{
.......
.....
...
......
....


CStatic a;
CStatic b;
};

Each time i destoy the view he has a debug heap error. Not at the destructor from the view but at
the internal destrucor of the real Object ( CObject i think )

then, i put the two CStatic's to the place where i have already declared another CStatic's and
miracle, no errors.

I had the same heap error at different views.

Now, the same case. I open a view in a frame (a), which opens a new Frame(B) and View and minimizes his-self

So i have a frame which is in normal state and another in minimized state.

Then i close the whole application : Heap Error of a CString in a Toolbar-Object

If A has the focus and B is still opened -> Error
If B has the focus and A is still opened -> No Error
I close B and A is still open -> No Error
I close A and B is still open -> No Error
I close A and B -> No Error

The error occurs after the ExitInstance of the Main-Application-Thread.

The Heap would be modified after freed D'Oh! | :doh:


Does anyone has an idea ?
AnswerRe: Heap Error Pin
James R. Twine13-Mar-07 2:50
James R. Twine13-Mar-07 2:50 
GeneralRe: Heap Error Pin
baerten13-Mar-07 3:09
baerten13-Mar-07 3:09 
GeneralRe: Heap Error Pin
James R. Twine13-Mar-07 3:16
James R. Twine13-Mar-07 3:16 
GeneralRe: Heap Error Pin
baerten13-Mar-07 4:00
baerten13-Mar-07 4:00 
QuestionRe: Heap Error Pin
prasad_som13-Mar-07 4:08
prasad_som13-Mar-07 4:08 
AnswerRe: Heap Error Pin
baerten13-Mar-07 4:42
baerten13-Mar-07 4:42 
GeneralRe: Heap Error Pin
James R. Twine13-Mar-07 5:03
James R. Twine13-Mar-07 5:03 
AnswerRe: Heap Error Pin
baerten13-Mar-07 23:35
baerten13-Mar-07 23:35 
QuestionAbout System Pin
Tran Ngoc Minh13-Mar-07 2:34
Tran Ngoc Minh13-Mar-07 2:34 
AnswerRe: About System Pin
Hamid_RT13-Mar-07 3:05
Hamid_RT13-Mar-07 3:05 
GeneralVisual Studio 2005 Installation Errors - How to FIx them [modified] Pin
NiceNaidu13-Mar-07 2:16
NiceNaidu13-Mar-07 2:16 
QuestionImages in ListControl Pin
gan_esh13-Mar-07 2:04
gan_esh13-Mar-07 2:04 
AnswerRe: Images in ListControl Pin
Hamid_RT13-Mar-07 2:19
Hamid_RT13-Mar-07 2:19 
Questionwhich of the following to look at? Pin
ShaluMalu13-Mar-07 1:54
ShaluMalu13-Mar-07 1:54 
AnswerRe: which of the following to look at? Pin
James R. Twine13-Mar-07 2:00
James R. Twine13-Mar-07 2:00 
QuestionHow I can add elements in multiple columns in a OWNER Drawn List box? Pin
Sameer_Thakur13-Mar-07 1:49
Sameer_Thakur13-Mar-07 1:49 
QuestionRe: How I can add elements in multiple columns in a OWNER Drawn List box? Pin
Hamid_RT13-Mar-07 2:12
Hamid_RT13-Mar-07 2:12 

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.