RE: Need help w/ call_back
- Posted by Bernie Ryan <xotron at localnet.com> Jan 29, 2002
- 403 views
Brian Broker wrote: > 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 Brian: Be sure that you are not assuming that some structure or pointer value that the DLL is returning is remaining in the same memory location and not being over written. Remember that DLL's can be moved arounding in memory by the operating system if they are written that way. You may have to immediately have make a copy of any data that is being returned before using it. This may be what is causing the ramdom failure of the callback. Bernie