Need help w/ call_back
- Posted by Brian Broker <bkb at cnw.com> Jan 28, 2002
- 447 views
So I'm working with a dll and I'm trying to wrap a function that requires a call_back() pointer. No problem here... when I trace my test program, I see that my callback function is being called and the parameters being passed to it look OK but I'm getting an access violation (C0000005) when I return from the function. When I try a debug version of the dll, I can get through several iterations of my callback function before I start getting bad parameters and a crash. The dll shouldn't care what I return from the callback because it's a void function (it's actually a callback procedure...) Also, if I define my callback function with no input parameters, I don't get a crash (but this doesn't help me because I need the input parameters to do anything useful). Does anybody have any further suggestions to help me figure out what might be the problem? I've checked and double checked the obvious (declarations, etc.) and working with callback functions is not new to me. It's just that this particular one has got me stumped. Thanks, -- Brian