Re: CIN Code crashing LabView - "(MSVCRT.DLL): 0xC0000096: Privileged Instruction? Error



Most likely you will run into this sort of problem due to WinXP not allowing direct access to the hardware. You have to go through drivers.
There is a util out on the web that is free that lets you 'forward' direct hardware requests sort of like packet forwarding in networking.
Sorry, I dont remember the site I downloaded it from due to misplaced the file when I did a spring cleaning of my drives.


Tim J>

rolfk wrote:
tomaso wrote:
I am trying to create a Code Interface Node for a LabView 7.1 code that is supposed to run on a Windows XP PRO machine. I
have modified an older C source code for the CIN that was running under
Windows98. LabView crashes on the subVI containing the CIN. The CIN reads from a device using _inpw and _inpd commands.   The error message ?Debug? button leads me to ?LabView ? Microsoft Visual C++[run] ? [Disassembly]?. This opens with an error message ?Unhandled exception in LabView.exe (MSVCRT.DLL): 0xC0000096: Privileged Instruction?. Does anyone have any clue? inp(w)
and out(w) are privileged CPU instruction codes and a user application
is normally not allowed to execute them under any Windows  NT type
OS (this includes NT 3, 4, W2K, XP, 2003).


You should instead look into using the InPort and OutPort VIs rewriting your CIN using these VIs in LabVIEW.

Alternatively you could look into the PortIO library provided on OpenG.
The device driver in there has the ability to selectively  allow
specific IO addresses to be accessed from the user level mode. But this
type of programming is not for the faint of the heart. If you do
something wrong you can easily crash your computer or possibly even
destroy something.

Rolf KalbermatterMessage Edited by rolfk on 01-01-2006 03:21 PM
.



Relevant Pages

  • Re: Internet Connection Drops
    ... Well, details like what hardware you've got, how old is the computer, ... computer, that sort of thing. ... drivers for your network card, or the other things on the list. ... website, not from Windows Update. ...
    (microsoft.public.windowsxp.general)
  • [bug] __nf_ct_refresh_acct(): WARNING: at lib/list_debug.c:30 __list_add+0x7d/0xad()
    ... Hardware name: System Product Name ... Call Trace: ... # DCCP Kernel Hacking ... # CAN Device Drivers ...
    (Linux-Kernel)
  • Re: Display Properties
    ... My next suggestion would be to visit your hardware manufacturers web page ... What to Know Before You Download and Install Windows XP Service Pack 2 ... You also have hardware on your machine that requires drivers to interface ... You have a video card that allows you to see on ...
    (microsoft.public.windowsxp.newusers)
  • Re: Regression in linux 2.6.37: failure on remount / (ext4) rw (was: Re: Regression in linux 2.6.37:
    ... I assume some "hardware state" influeces triggering of this bug ... anything unless you actually access the affected sysfs files. ... # Infrared-port device drivers ... # Dongle support ...
    (Linux-Kernel)
  • Re: lockups and crashes
    ... - See Tip in the list of system maintenance tips I am including at ... - Updated your hardware drivers to the latest versions direct from the ... using Windows XP "prettifications". ... You also have hardware on your machine that requires drivers to interface ...
    (microsoft.public.windowsxp.perform_maintain)