LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

an labview.exe - application error occured when i use C functions (in a DLL)that communicate with EPP

I built a dll with different functions that communicate with the EPP (i don't use accessHW.dll).
When i launch a vi that use the call library functions, a labview.exe application occured:
The exception Privileged instruction.
(0xc0000096) occured in the application at location 0x1022ac4b.
If i dissambly,a message appears:
Unhandled exception in labview.exe(MSVCRT.DLL):0xc0000096:privileged instruction.
They show me the statement:
out dx,al
I verify the calling conventions and all the data types.Could you tell where does it come from?
thank you.
0 Kudos
Message 1 of 3
(2,992 Views)
Hi Nolive-

LabVIEW should easily be able to handle DLLs that are created with the C/C++ language. Your specific error message raises no warning lights right off. Unfortunately this seems to be the case for most dll debugging issues.

Are you getting this error when you run your vi as an exe or as a vi? I would try both and see if the error messages are the same.

Can you access other dlls from other vis? It would be great to run one of our sample programs that makes a dll in Visual C++ (or CVI) and then accesses it from LabVIEW to see if your configuration is the same.

I have attached a link to our external site that describes compiling c dlls and then accessing them in LabVIEW.


This guy goes over buuilding dlls in Visual C++ ->
http://zone.ni.com/devzone/co
nceptd.nsf/2d17d611efb58b22862567a9006ffe76/3a1f4b7cbc68b636862567cc004d5cca?OpenDocument

And then how to use them in LabVIEW->
http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&98DA94DCEACECF3F862567CA0055DB5F&cat=E2A99E7E10D5725D862567AC004F0A53

good luck
ben schulte
national instruments
0 Kudos
Message 2 of 3
(2,992 Views)
Someome tell me that i have to install a driver giveio.sys and active the parallel port (EPP) to communicate with it.
What do you think about that?
0 Kudos
Message 3 of 3
(2,992 Views)