LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Dll

I use a dll for a modbus communication which was developed with Borland
Delphi 4.
I created a lib with CVI.
When I use it, my program runs well, the communication works properly
but when I stop my program an Windows Error occurs "page trouble in
modbus.dll".
If I use it with CVI 5.01, the editor shut down in debug mode after I
close the program and an unrecoverable error occurs .
If I suspend execution (Ctrl F12), the program stops and it is possible
to continue.
If I terminate execution (Ctrl F12), the editor shut down and an
unrecoverable error occurs.
If I run an executable version of my program, an Windows error occurs
after stopping the program.

If I use it with CVI 5.5.1, the editor shut down in debug mode after I
close the program a
nd it's impossible to acknowledge this error, I must
restart my computer. .
If I suspend execution (Ctrl F12), the program stops and it is possible
to continue.
If I terminate execution (Ctrl F12), the program stops and it is
possible to use the editor.
If I run an executable version of my program, an Windows error occurs
after stopping the program and it's impossible to acknowledge this
error, I must restart my computer.

We thought that the problem comes from the name of the functions used by
the dll.

OpenCom() and DisableCom() which are the same that the functions used in
RS232 lib of CVI
So I asked to the dll supplier to rename the functions ->OpenComMo(),
DisableComMo() but no success with the new dll.

If someone has an idea about this trouble, I could use CVI5.5.1 for my
software using the Modbus Communication.
An other way is to give me the link to a site where I can find an Modbus
driver for CVI.

Thank you
Bertrand
0 Kudos
Message 1 of 1
(2,764 Views)