RE: Need help w/ call_back

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu