G
Guest
How can I make sure that a spicific function location in memory will not
moved , by OS/Garbage collection ?????
The problem is : I'm using a DLL this dll have an call backerror function,
in my Application I made an error function which show the error if occurred
(Message box). I send a reference of my Application error function to DLL
call backerror function.
Now every time an error occur in DLL the DLL call my Application error
function.
This mechanism is working , but after some time some how I receive an
exception ,it looks like the Application error function is not in the same
place. and the DLL can't call it again. How can I make sure my Application
error function will not moved , by OS/Garbage collection ?????
This mechanism used a lot in my work, specially when DLL is a low level
writing in(C++/C) and we use C# for a high level (GUI), we want all the error
be handled by high level (Out put message, logfile , re connect low level
(hardware) ...).
moved , by OS/Garbage collection ?????
The problem is : I'm using a DLL this dll have an call backerror function,
in my Application I made an error function which show the error if occurred
(Message box). I send a reference of my Application error function to DLL
call backerror function.
Now every time an error occur in DLL the DLL call my Application error
function.
This mechanism is working , but after some time some how I receive an
exception ,it looks like the Application error function is not in the same
place. and the DLL can't call it again. How can I make sure my Application
error function will not moved , by OS/Garbage collection ?????
This mechanism used a lot in my work, specially when DLL is a low level
writing in(C++/C) and we use C# for a high level (GUI), we want all the error
be handled by high level (Out put message, logfile , re connect low level
(hardware) ...).