01-18-2007 02:16 PM
01-19-2007 08:39 AM
What kind of connection do you establish to the DLL?
Did you create the DLL? Or someone else in your compny? Or did you buy it?
What do you do in your application as it is exiting? Do you try to write to a file?
Can you run your application without calling the DLL functions?
Do you have a UIR?
Do you have a close control on your main panel?
Can you post the callback for your close control?
Do you have a long loop in one of your callbacks? Callbacks must return before responding to your close control.
Is your application multi-threaded?
If your application uses RunUserInterface and QuitUserInterface, put a breakpoint on QuitUserInterface and single step from there.
01-22-2007 07:51 AM
What kind of connection do you establish to the DLL?
The way I establish a connection to the DLL is through the .lib file that I created using the .h and .dll file.
Did you create the DLL? Or someone else in your compny? Or did you buy it?
The DLL was created by another company and the only file that I have from the other company is a dll, h, and lib files.
What do you do in your application as it is exiting? Do you try to write to a file?
When I comment out the code that closes the DLL, the application exits out and the process ends. But with the DLL disconnect in my code, the program hangs up and the process does not end.
Can you run your application without calling the DLL functions? Yes and the application works without a problem.
Do you have a UIR? Yes
Do you have a close control on your main panel? Yes, it is an exit button.
Can you post the callback for your close control?
Do you have a long loop in one of your callbacks? No, there is no loop in the callback.
Callbacks must return before responding to your close control.
Is your application multi-threaded? No
If your application uses RunUserInterface and QuitUserInterface, put a breakpoint on QuitUserInterface and single step from there. I will give that a try.
I am just wondering if there is a compatbility issue between the header file and dll that when I call the close or disconnect with the DLL it hangs up.
Thanks
01-22-2007 11:47 AM
Specifically, what functions do you call to connect to the DLL and then disconnect from it? LoadLibrary and FreeLibrary? Some functions native to the DLL?
It you're using function from the DLL to disconnect, do you have any documentation on that function?
Have you tried running the code while logged on as an admin?
01-22-2007 12:31 PM
01-22-2007 12:39 PM
You do not need to LoadLibrary and FreeLibrary if you are statically linking the DLL and include the .LIB file in your project.
I asked about them because I don't what you are doing to "connect" and "disconnect" the DLL.
01-24-2007 07:40 AM