Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what have I deleted? :=< Pin
Rickard Andersson2023-May-03 0:04
Rickard Andersson2023-May-03 0:04 
GeneralDisabled mini-bar in Developer Studio Pin
JensB22-May-03 23:31
JensB22-May-03 23:31 
QuestionCan Anyone Help me on OLE Drag&Drop In MFC Pin
ccdai22-May-03 23:15
ccdai22-May-03 23:15 
GeneralSomething really strange !! Pin
Cedric Moonen22-May-03 21:44
Cedric Moonen22-May-03 21:44 
GeneralRe: Something really strange !! Pin
Rage22-May-03 23:07
professionalRage22-May-03 23:07 
GeneralRe: Something really strange !! Pin
Cedric Moonen22-May-03 23:19
Cedric Moonen22-May-03 23:19 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 0:52
Neville Franks23-May-03 0:52 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 1:41
Cedric Moonen23-May-03 1:41 
Thanks for your propositions !! I tried everything and.... I do not understand better the problem Mad | :mad: Mad | :mad: !!

If you change the MessageBox() to a TRACE() do you still get the exception? Maybe the stack is screwed before ZANErrorExit() is called.


I don't have any exception thrown with the TRACE ! The document hasn't been destroyed because this function is called from another function wich is called by OnNewDocument! If an error occur, this function returns an error code to OnNewDocument() that will return FALSE so the document will be deleted after ! Something I forgot to tell you: this code is used also on other projects and sometimes it works fine and sometimes not (depending of the project) Confused | :confused: !

If you wrap the code in ZANErrorExit() in a try .. catch what happens <\i>

The exception is caugth and that's it !

If you open the Assembly window and step through the assembler code when MessageBox() is reached what happens.

A lot (really a lot !) of assembly code is executed and then suddenly the exception is thrown (don't ask me at wich instruction, assembler is nt easy to read Smile | :) )

So, any idea to this strange bug ???

GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 1:58
Neville Franks23-May-03 1:58 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 2:12
Cedric Moonen23-May-03 2:12 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 2:21
Neville Franks23-May-03 2:21 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 2:41
Cedric Moonen23-May-03 2:41 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 2:47
Neville Franks23-May-03 2:47 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 2:59
Cedric Moonen23-May-03 2:59 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 3:06
Neville Franks23-May-03 3:06 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 3:10
Cedric Moonen23-May-03 3:10 
GeneralRe: Something really strange !! Pin
Rage23-May-03 1:49
professionalRage23-May-03 1:49 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 1:54
Cedric Moonen23-May-03 1:54 
GeneralRe: Something really strange !! Pin
Rage23-May-03 2:23
professionalRage23-May-03 2:23 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 2:42
Cedric Moonen23-May-03 2:42 
GeneralRe: Something really strange !! Pin
Franz Klein23-May-03 3:01
Franz Klein23-May-03 3:01 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 3:07
Cedric Moonen23-May-03 3:07 
GeneralRe: Something really strange !! Pin
basementman23-May-03 4:08
basementman23-May-03 4:08 
Questionis the pipe the fastest? Pin
novachen22-May-03 21:17
novachen22-May-03 21:17 
AnswerRe: is the pipe the fastest? Pin
Stuart Dootson23-May-03 0:59
professionalStuart Dootson23-May-03 0:59 

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.