Click here to Skip to main content
15,903,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Issue with Printing Pin
Mohibur Rashid24-Jul-12 23:36
professionalMohibur Rashid24-Jul-12 23:36 
AnswerRe: Issue with Printing Pin
Richard MacCutchan20-Jul-12 1:05
mveRichard MacCutchan20-Jul-12 1:05 
GeneralRe: Issue with Printing Pin
Mohibur Rashid20-Jul-12 1:27
professionalMohibur Rashid20-Jul-12 1:27 
GeneralRe: Issue with Printing Pin
Richard MacCutchan20-Jul-12 1:49
mveRichard MacCutchan20-Jul-12 1:49 
GeneralRe: Issue with Printing Pin
Mohibur Rashid20-Jul-12 2:24
professionalMohibur Rashid20-Jul-12 2:24 
GeneralRe: Issue with Printing Pin
Richard MacCutchan20-Jul-12 2:52
mveRichard MacCutchan20-Jul-12 2:52 
GeneralRe: Issue with Printing Pin
Mohibur Rashid23-Jul-12 14:50
professionalMohibur Rashid23-Jul-12 14:50 
QuestionWindows has triggered a breakpoint in exe....... Pin
Andraw11119-Jul-12 9:01
Andraw11119-Jul-12 9:01 
AnswerRe: Windows has triggered a breakpoint in exe....... Pin
Albert Holguin19-Jul-12 9:12
professionalAlbert Holguin19-Jul-12 9:12 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Andraw11119-Jul-12 9:56
Andraw11119-Jul-12 9:56 
GeneralRe: Windows has triggered a breakpoint in exe....... Pin
Andraw11119-Jul-12 10:58
Andraw11119-Jul-12 10:58 
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 

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.