Click here to Skip to main content
15,887,942 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Richard MacCutchan19-Jul-12 22:24
mveRichard MacCutchan19-Jul-12 22:24 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Andraw11123-Jul-12 3:44
Andraw11123-Jul-12 3:44 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Richard MacCutchan23-Jul-12 4:30
mveRichard MacCutchan23-Jul-12 4:30 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Andraw11123-Jul-12 5:36
Andraw11123-Jul-12 5:36 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Richard MacCutchan23-Jul-12 5:45
mveRichard MacCutchan23-Jul-12 5:45 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Andraw11123-Jul-12 6:24
Andraw11123-Jul-12 6:24 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Richard MacCutchan23-Jul-12 7:14
mveRichard MacCutchan23-Jul-12 7:14 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Stephen Hewitt20-Jul-12 6:55
Stephen Hewitt20-Jul-12 6:55 
Looks like you're crashing because of heap corruption. The crash is almost certainly happening in the "Class1* obj = new Class1();" line (it's common for the line number to indicate the line after actual call in question), the "dbgheap.c" all but proves it.
 
With heap problems the actual root cause (when the heap got corrupted) and the resulting crash (in your case when the heap manager detects it) can be separated but quite some time, which makes it difficult to debug.
 
I'll take a wild quess at the cause however:
 Looks like the new statement with allocates the object is in the DLL. How is it deleted? By a delete statement in the DLL's client? If so try moving it into the DLL where it belongs:
void DeleteCase1Obj(Class1 *obj)
{
   delete obj;
}


Replace all deletes of this object in the client with calls to this function which is exported from the DLL.
 
Steve

Generalerror C2491: 'XXX'::entries' : definition of dllimport function not allowed Pin
Andraw11119-Jul-12 4:51
Andraw11119-Jul-12 4:51 
AnswerRe: error C2491: 'XXX'::entries' : definition of dllimport function not allowed Pin
Albert Holguin19-Jul-12 5:09
professionalAlbert Holguin19-Jul-12 5:09 
GeneralRe: error C2491: 'XXX'::entries' : definition of dllimport function not allowed Pin
Andraw11119-Jul-12 5:35
Andraw11119-Jul-12 5:35 
Generalerror C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 Pin
Andraw11119-Jul-12 4:20
Andraw11119-Jul-12 4:20 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 Pin
Chris Losinger19-Jul-12 4:27
professionalChris Losinger19-Jul-12 4:27 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 Pin
Stephen Hewitt19-Jul-12 4:27
Stephen Hewitt19-Jul-12 4:27 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 Pin
Andraw11119-Jul-12 4:35
Andraw11119-Jul-12 4:35 
Questionc++ code Pin
phineas kimathi19-Jul-12 2:46
phineas kimathi19-Jul-12 2:46 
AnswerRe: c++ code Pin
Richard MacCutchan19-Jul-12 3:21
mveRichard MacCutchan19-Jul-12 3:21 
AnswerRe: c++ code Pin
Rajesh R Subramanian19-Jul-12 3:34
professionalRajesh R Subramanian19-Jul-12 3:34 
AnswerRe: c++ code Pin
Software_Developer19-Jul-12 6:52
Software_Developer19-Jul-12 6:52 
GeneralRe: c++ code Pin
Richard MacCutchan19-Jul-12 22:20
mveRichard MacCutchan19-Jul-12 22:20 
SuggestionRe: c++ code Pin
David Crow20-Jul-12 2:29
David Crow20-Jul-12 2:29 
GeneralRe: c++ code Pin
Software_Developer20-Jul-12 3:30
Software_Developer20-Jul-12 3:30 
QuestionError happen when open file while migrate VC++ 6 to VS2008 Pin
Andraw11118-Jul-12 9:16
Andraw11118-Jul-12 9:16 
AnswerRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Albert Holguin18-Jul-12 9:47
professionalAlbert Holguin18-Jul-12 9:47 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Andraw11118-Jul-12 10:01
Andraw11118-Jul-12 10:01 

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.