Re: C++ DLL Side Of a VB Call-back function Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



Nate, Nano <nanonut@xxxxxxxxx> schrieb im Beitrag
<1164063170.773039.311090@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
I've just completed another part of my troubleshooting and I've
found that when I implement a call to a C++ DLL which calls back a VB
function right away, that the whole system works correctly. However,
when I try to pass the address of a VB call back function, and a C++
DLL thread tries to execute the VB function at a later time (meaning
not within the same function call) that the whole program hangs. Is the
VB call back function being destroyed after the function call? Is there
anyway I can prevent this hanging from happening

The VB function isn't destroyed if it is a regular function within the VB
executable. Note: When a VB application gets started, the executable image
file is mapped to the virtual memory and stays mapped as long as the
application is running. No function which resides in the executable image
will change its virtual memory address for the whole time the image is
mapped to the virtual memory.
Presumably there are other errors in your code which we can't discuss
without seeing the code.

--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------

.



Relevant Pages

  • Re: Why do we need executables in certain formats ?
    ... > Can anybody explain me why do we need executables in certain formats? ... Modern virtual memory processors can locate to ... ..DLL files changed out from under them, ...
    (comp.lang.asm.x86)
  • Re: DLL load issue
    ... processes need/load a DLL, the DLL is actually load one copy into physical ... Multiple copies of the virtual memory pages of the non-static ... Addresses are relative to a base register. ...
    (microsoft.public.vc.language)
  • Re: DLL load issue
    ... processes need/load a DLL, the DLL is actually load one copy into physical ... Multiple copies of the virtual memory pages of the non-static ... Addresses are relative to a base register. ...
    (microsoft.public.vc.language)
  • Re: .Net 2.0 app behavior on 64-bit machine.
    ... their DLL can address the 4GB virtual memory ... I would say it's unlikley their 32 bit dll is addressing 4GB of virtual ...
    (microsoft.public.dotnet.framework)
  • Re: DLL Injection from kernel-land
    ... 3- program catches event and asks driver information about process ... 5- DLL walks through PE and patches function addresses ... write in virtual memory some code that loads the DLL of interest ...
    (microsoft.public.win32.programmer.kernel)