02-10-2010 03:50 AM
Hello all,
My program consist of:
- Main program
- DLL's
How it works:
The main program is the interface for the user, this main program call's several dll's
The problem:
The main program runs withought problems, but when it call's a dll, which also call's an activeX component, I get an error.
I then made a executable from the dll which then works ok, no problem.
When I click the retry it runs ok, but when I call it again I get the message again.
The message does allways accur, but still very often
Conclusion:
The error message only comes when I call it as a dll, when the dll is standalone executable no problems occur.
Below you can see how I call the dll:
Can someone please help me with this problem?
greetz,
Bart
02-11-2010 12:41 AM
02-11-2010 06:13 AM
I just found out that when I run the DLL once then let it untouched for a while then test again it goes very good.
strange...
02-12-2010 03:39 AM
Hi Bart,
As I search google, i find that this error has something to do with the calling convention.
This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
Maybe you can post some documentation of the dll.
Regards,
Bas
02-12-2010 04:32 AM - edited 02-12-2010 04:33 AM
Hello Bas,
I have included the vi which calls de dll(executedll.vi) en the dll in VI form(plugin.vi & plugin.lvproj).
As you can see the dll calls the canconfigurator activex component.
And closes the activex component when done.
This plugin will be called several times in the test enviroment.
gr,