mardi 10 février 2015

Release of objects and version 1.3.2

Hello,

i tried to install new version 1.3.2 of Forexconnect. I found a problem during logout. I deeveloped my own dll as a library for Embarcadero. This library is based on a class that is transformed from C++ class to C functions. It worked without any problem with prevoius versions.

I use loadLibrary to use the C functions. I can connect, trade, load history etc. but if i want to logout, disconnect and close session there is a problem. I can clear all the objects such as sessionStatusListener, responseListener, tableListener and session itself. After that i can delete my C++ class using the C function. The SW is based on neural networks and it is quite complex and it is necessary to have a possibility to unload library (if you are interested see IMCEP).

The problem is if i want to unload my DLL by use of FreeLibrary function application stays frozen. It looks that DLL cannot be released because of some threads are not terminated and continue their work. In this case FreeLibrary waits for the thread to be finished. Or, what can be a reason?

I can see 12 threads more in process explorer after login. And only 7 threads are released after logout. I know that almost all threads started were released in previous version.

I would like to continue with the new version and don't want to downgrade back to 1.3.1.

Please, can you help me or fix this issue?

Thank you.

Best regards

Tomas




Aucun commentaire:

Enregistrer un commentaire