LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call a dll with an activeX component gives error

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.

 

error.JPG

 

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:

dllcall1.JPG 

 

 dllcall2.JPG

 

 

Can someone please help me with this problem?

 

greetz,

Bart

 

 

0 Kudos
Message 1 of 5
(2,553 Views)
Anyone some ideas?
0 Kudos
Message 2 of 5
(2,526 Views)

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...

0 Kudos
Message 3 of 5
(2,519 Views)

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

0 Kudos
Message 4 of 5
(2,505 Views)

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,

 

Message Edited by darkxceed on 02-12-2010 04:33 AM
Message Edited by darkxceed on 02-12-2010 04:33 AM
Download All
0 Kudos
Message 5 of 5
(2,499 Views)