Posts: 135
Threads: 33
Joined: Aug 2009
Hi,
When I use QM with dll functions, sometimes I have weird results like it were still hanging to the latest calculations, even when the main QM function is over. If I insert a delay or repeat several times, it works well.
Any help, please?
Posts: 12,090
Threads: 142
Joined: Dec 2002
Please give code example, with a real function.
Posts: 135
Threads: 33
Joined: Aug 2009
It is complicated to post. The main macro has hundreds of lines with dozens of functions. Three dll functions with hundreds of lines of code, so it seems a difficult task. Doing some sims with heavy calculations...
Posts: 12,090
Threads: 142
Joined: Dec 2002
What are the dll functions and what they do? Maybe they start new threads? Or do some asynchronous file operations? Or post multiple messages to some other thread?
Posts: 135
Threads: 33
Joined: Aug 2009
The dlls don't start new threads nor file operations. If I use a c program instead the main QM macro and QM functions, it works well with the same dll functions.
Posts: 12,090
Threads: 142
Joined: Dec 2002
Please explain "hanging to the latest calculations". Uses CPU? How long?
Posts: 135
Threads: 33
Joined: Aug 2009
The results appear to be the same as the previous calculations. I am going to check all the code again...