Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DLL with a callback Pin
CPallini15-Apr-21 20:51
mveCPallini15-Apr-21 20:51 
GeneralRe: DLL with a callback Pin
Richard MacCutchan15-Apr-21 22:44
mveRichard MacCutchan15-Apr-21 22:44 
PraiseRe: DLL with a callback Pin
Bodo240715-Apr-21 23:04
Bodo240715-Apr-21 23:04 
GeneralRe: DLL with a callback Pin
CPallini15-Apr-21 23:24
mveCPallini15-Apr-21 23:24 
GeneralRe: DLL with a callback Pin
Richard MacCutchan16-Apr-21 0:17
mveRichard MacCutchan16-Apr-21 0:17 
GeneralRe: DLL with a callback Pin
Bodo240716-Apr-21 3:47
Bodo240716-Apr-21 3:47 
GeneralRe: DLL with a callback Pin
Richard MacCutchan16-Apr-21 4:33
mveRichard MacCutchan16-Apr-21 4:33 
GeneralRe: DLL with a callback Pin
Bodo240716-Apr-21 4:46
Bodo240716-Apr-21 4:46 
Hi Richard,

yes, I know that. I did put that in, because I got the exception and wanted to try the example code. This worked two times, so I thought it must be caused by leaving the function. Unfortunately thsi is not the case:
After some debugging runs it seems that (in rare cases) it works a few times, but most likely it crashes immediately. So the observation I made that it is working if I call WaitForSingleObject isn't correct, it can crash randomly with or without.
Unfortunately when it crashs the program pointer isn't on frame any more, so I don't see why it does that.
One observation I made is that the handle of gDoneEvent is allocated in an entirely different address room (0x000003b0) than the other two handles hTimer and hTimerQueue(0x008b8928 and 0x008bsomething) which seems strange to me, since I thought allocated event should be also pretty close to the handles, but obviously it is not.

modified 16-Apr-21 11:04am.

GeneralRe: DLL with a callback Pin
Richard MacCutchan16-Apr-21 5:32
mveRichard MacCutchan16-Apr-21 5:32 
Questionmac desing: Pin
prasad 202114-Apr-21 23:09
prasad 202114-Apr-21 23:09 
AnswerRe: mac desing: Pin
Richard MacCutchan14-Apr-21 23:12
mveRichard MacCutchan14-Apr-21 23:12 
AnswerRe: mac desing: Pin
Dave Kreskowiak15-Apr-21 4:35
mveDave Kreskowiak15-Apr-21 4:35 
AnswerRe: mac desing: Pin
David Crow15-Apr-21 5:39
David Crow15-Apr-21 5:39 
QuestionEACCES when not running under VS debugger Pin
ForNow11-Apr-21 10:10
ForNow11-Apr-21 10:10 
AnswerRe: EACCES when not running under VS debugger Pin
Richard MacCutchan11-Apr-21 21:27
mveRichard MacCutchan11-Apr-21 21:27 
GeneralRe: EACCES when not running under VS debugger Pin
ForNow12-Apr-21 1:34
ForNow12-Apr-21 1:34 
GeneralRe: EACCES when not running under VS debugger Pin
Richard MacCutchan12-Apr-21 1:52
mveRichard MacCutchan12-Apr-21 1:52 
GeneralRe: EACCES when not running under VS debugger Pin
ForNow12-Apr-21 2:02
ForNow12-Apr-21 2:02 
Questionuse of dependent type name must be prefixed Pin
_Flaviu1-Apr-21 7:02
_Flaviu1-Apr-21 7:02 
AnswerRe: use of dependent type name must be prefixed Pin
Greg Utas1-Apr-21 8:00
professionalGreg Utas1-Apr-21 8:00 
GeneralRe: use of dependent type name must be prefixed Pin
_Flaviu1-Apr-21 8:25
_Flaviu1-Apr-21 8:25 
GeneralRe: use of dependent type name must be prefixed Pin
Greg Utas1-Apr-21 10:50
professionalGreg Utas1-Apr-21 10:50 
GeneralRe: use of dependent type name must be prefixed Pin
_Flaviu1-Apr-21 19:34
_Flaviu1-Apr-21 19:34 
GeneralRe: use of dependent type name must be prefixed Pin
Greg Utas2-Apr-21 3:02
professionalGreg Utas2-Apr-21 3:02 
AnswerRe: use of dependent type name must be prefixed Pin
Richard MacCutchan2-Apr-21 0:51
mveRichard MacCutchan2-Apr-21 0:51 

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.