Why LabVIEW crashes when I'm trying to use "in" and "out" in my DLL?

Calling function from DLL using Call Library Function.
Function source:
extern "C" __declspec(dllexport) long ReadPort(long base, long off)
unsigned char c;
long d;
__asm
push eax
push dx
push ax
mov eax, base
add eax, off
mov dx, ax
in al, dx
mov c, al
pop ax
pop dx
pop eax
d = c;
return d;
Using LabVIEW 5.0 and MSVC 6
OS: Win2k

> I am sure... When I delete "in" command from DLL source, it works...
> but when I use "in" or "out" assembler command, LV crashes (sometimes
> without any error message)...
>
Windowd 2000, and most of the more modern MS OSes do not allow direct
access to HW. That means that applications do not have permission to
call in and out instructions. Those instructions are protected and any
app calling them will be terminated because it did something illegal.
To get direct I/O to work, you should look for the driver on the NI web
site that will redirect it for you.
Greg McKaskle

Similar Messages

  • Why does firefox crash when i am trying to use the google search function?

    I use Windows 7 and have Firefox 3.6.23 installed. I have no problem with most websites, but Firefox crashes every time I try to do Google searches. So far this issue is only happening with Google.

    See below. If anyone can help with this, I would appreciate it.
    Add-ons: {CAFEEFAC-0016-0000-0024-ABCDEFFEDCBA}:6.0.24,{CAFEEFAC-0016-0000-0026-ABCDEFFEDCBA}:6.0.26,{4ED1F68A-5463-4931-9384-8FFF5ED91D92}:3.4.0,{972ce4c6-7e08-4474-a285-3208198ce6fd}:3.6.23
    BuildID: 20110920075126
    CrashTime: 1318036312
    EMCheckCompatibility: true
    Email: [email protected]
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1317382785
    ProductName: Firefox
    ReleaseChannel: release
    SecondsSinceLastCrash: 402
    StartupTime: 1318035938
    Theme: classic/1.0
    Throttleable: 1
    URL: http://www.google.com/
    Vendor: Mozilla
    Version: 3.6.23
    This report also contains technical information about the state of the application when it crashed.

  • Safari Browser in my iPhone 5S Hangs/Crashes when I was trying to open an Youtube video.Why is this happening?

    My iPhone 5S(Boasted as Worlds smartest smartphone) Hangs/Crashes when I was trying to open any Youtube video....
    Is there any fix for this apple.......???
    I love my iPhone 5s.But I'm pretty dissapointed.
    Coz...........
    Feeling ashamed of buying a smartphone worth Rs.51,000 which can't play a youtube video in its stock browser.
    Its a zippy task that can be done by a mobile worth Rs.5,100........
    Its shame on your part Apple..........
    Please fix this as soon as possible.
    Consider this bug & fix this in iOS 8......

    Google's Chrome browser is very well capable of doing what I want with ease....(on my iPhone)
    But Apple's Safari browser(much praised) cant move a speck on it...
    Why???........Whats wrong with the stock Safari Browser???

  • Why does LabView crash when unloading my DLL (reentrant calls)?

    I have written a DLL in Borland Delphi using multiple threads that exports several functions (stdcall). I am using LabVIEW 6i on a WinXP machine.  All functions in the DLL work as expected and return correct values. Everything works fine if I set all Call Library Function Nodes to 'UI-Thread', but as soon as I set one Function Node to 'Reentrant', LabView crashes when I close the VI after it has been executed. I assume the error is caused by the DLL unloading mechanism of LabView. Other C++/Delphi programs using the DLL reentrantly work fine, this only occurs in LabView. In which thread does LabView call FreeLibrary/DLL_PROCESS_DETACH? Has anyone experienced similar problems?

    I have never run into this situation myself, but I do know that calling a multi-threaded DLL or CIN from LabVIEW does depend upon the following criteria:
    If your CIN/DLL doesn't have any global data storage (global variables, files on disk, etc.), AND it doesn't access any hardware (register-level programming) AND it doesn't call any functions/DLLs/Drivers that are thread-unsafe.
    OR
    Your CIN/DLL protects (with semaphores or mutex's) access to those global resources.
    OR
    Your DLL is only called from one, non-reentrant VI
    OR
    Your CIN is only called from one, non-reentrant VI AND you don't access any global resources from CINInit, CINAbort, CINDispose, etc. procedures.
    Hopefully this information can help you out in some way.
    J.R. Allen

  • LabVIEW crashes when I save changes to a particular VI.

    LabVIEW crashes when it tries to compile a particular VI. I have managed to get it to work a couple of times by changing a few things and making some subVIs, but the problem keeps returning.
    Is there some way to fix this or clean the VI of whatever corruption keeps occurring?
    Thank you,
    David R. Asher

    I can think of address/hardware conflicts or something that LabVIEW cannot provide an error message. I would go with hardware/address conflicts.
    Try renaming the file and executing it stand-alone. also try making it as a subvi and run the toplevel code.
    Kudos always welcome for helpful posts

  • My macbook pro (ca 2010) keeps on crashing when I am trying to install programs...

    My macbook pro (ca 2010) keeps on crashing when I am trying to install programs from the creative suite. When the creative suite manager is running in the background it also crashes... I have recently updated to os yosemite, does this have anything to do with it? I have come across a few posts in forums where people have the same proble...
    I just recently reinstalled everything new to a new ssd drive but the same problem keeps recurring.

    The current version of iTunes is 11.0.5 (5).  How do you know it won't install? What error message(s) or other indicators lead you to say it won't install?  Need some more information to help ....

  • Since installing Maverick, all Adobe CC apps crash when I am trying to save or import.

    Since installing Maverick, all Adobe CC apps crash when I am trying to save or import.  I might be able to save the file if I do not try to select anything other folder than the current folder that opens (last opened).  I do not use the cover view option (I see some have had problems with that), but almost always have it in list view.
    Is there some setting I need to set or is there a fix for this somewhere?
    Also, is it just me or does it seem like Mac crashes more now with Maverick than before?

    Here is a portion log from Photoshop CC from Step 1
    Date/Time:       2013-11-22 19:22:56 -0500
    OS Version:      10.9 (Build 13A603)
    Architecture:    x86_64
    Report Version:  18
    Command:         Photoshop
    Path:            /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/MacOS/Adobe Photoshop CC
    Version:         14.1.2 (14.1.2.427)
    Parent:          launchd [205]
    PID:             437
    Event:           hang
    Duration:        1.16s (process was unresponsive for 9 seconds before sampling)
    Steps:           12 (100ms sampling interval)
    Hardware model:  iMac9,1
    Active cpus:     2
    Fan speed:       798 rpm
    Free pages:      338236 pages (+1861)
    Pageins:         16 pages
    Pageouts:        0 pages
    Swapins:         0 pages
    Swapouts:        0 pages
    Process:         Adobe Photoshop CC [437]
    Path:            /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/MacOS/Adobe Photoshop CC
    Architecture:    x86_64
    Parent:          launchd [205]
    UID:             501
    Task size:       55405 pages
    CPU Time:        1.087s
    Note:            Unresponsive for 9 seconds before sampling
      Thread 0x3216     DispatchQueue 1          priority    0-35   cpu time   1.086s
      12 ??? (Adobe Photoshop CC + 10804) [0x100002a34]
        12 ??? (Adobe Photoshop CC + 2967993) [0x1002d49b9]
          12 ??? (Adobe Photoshop CC + 2967772) [0x1002d48dc]
            12 ??? (Adobe Photoshop CC + 556898) [0x100087f62]
              12 ??? (Adobe Photoshop CC + 23843020) [0x1016bd0cc]
                12 ??? (Adobe Photoshop CC + 23838178) [0x1016bbde2]
                  12 -[NSApplication run] + 646 (AppKit) [0x7fff86dfea29]
                    12 ??? (Adobe Photoshop CC + 23836328) [0x1016bb6a8]
                      12 ??? (Adobe Photoshop CC + 23833549) [0x1016babcd]
                        12 -[NSApplication sendEvent:] + 2021 (AppKit) [0x7fff86fae744]
                          12 ??? (AdobeOwl + 223946) [0x1043f6aca]
                            12 -[NSWindow sendEvent:] + 3721 (AppKit) [0x7fff8700df71]
                              12 ??? (Adobe Photoshop CC + 24599380) [0x101775b54]
                                12 ??? (Adobe Photoshop CC + 24595429) [0x101774be5]
                                  12 ??? (Adobe Photoshop CC + 547869) [0x100085c1d]
                                    12 ??? (Adobe Photoshop CC + 541782) [0x100084456]
                                      12 ??? (Adobe Photoshop CC + 9041949)
    I also see this message:
    *** Assertion failure in -[PSCocoaMenu itemAtIndex:], /SourceCache/AppKit/AppKit-1265/Menus.subproj.NSMenu.m:865
    Also, here is a .hang report that I found
    Path:            /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/MacOS/Adobe Photoshop CC
    Process:         Adobe Photoshop CC [939]
    Path:            /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/MacOS/Adobe Photoshop CC
      11 ??? (Adobe Photoshop CC + 10804) [0x100002a34]
        11 ??? (Adobe Photoshop CC + 2967993) [0x1002d49b9]
          11 ??? (Adobe Photoshop CC + 2967772) [0x1002d48dc]
            11 ??? (Adobe Photoshop CC + 556898) [0x100087f62]
              11 ??? (Adobe Photoshop CC + 23843020) [0x1016bd0cc]
                11 ??? (Adobe Photoshop CC + 23838178) [0x1016bbde2]
                                          11 ??? (Adobe Photoshop CC + 23838420) [0x1016bbed4]
                                            11 ??? (Adobe Photoshop CC + 554787) [0x100087723]
                                              11 ??? (Adobe Photoshop CC + 555164) [0x10008789c]
                                                11 ??? (Adobe Photoshop CC + 582218) [0x10008e24a]
                                                  11 ??? (Adobe Photoshop CC + 551140) [0x1000868e4]
                                                    11 ??? (Adobe Photoshop CC + 1096492) [0x10010bb2c]
                                                      11 ??? (Adobe Photoshop CC + 1066245) [0x100104505]
                                                        11 ??? (Adobe Photoshop CC + 1106928) [0x10010e3f0]
                                                          11 ??? (Adobe Photoshop CC + 9028189) [0x10089c25d]
                                                            11 ??? (Adobe Photoshop CC + 543403) [0x100084aab]
                                                              11 ??? (Adobe Photoshop CC + 9047434) [0x1008a0d8a]
                                                                11 ??? (Adobe Photoshop CC + 539561) [0x100083ba9]
                                                                  11 ??? (Adobe Photoshop CC + 23909304) [0x1016cd3b8]
            11 ??? (Adobe Photoshop CC + 24013556) [0x1016e6af4]
              11 ??? (Adobe Photoshop CC + 26858074) [0x10199d25a]
                11 ??? (Adobe Photoshop CC + 26851948) [0x10199ba6c]
                  11 ??? (Adobe Photoshop CC + 26855800) [0x10199c978]
                    11 ??? (Adobe Photoshop CC + 2771725) [0x1002a4b0d]
            11 ??? (Adobe Photoshop CC + 24013556) [0x1016e6af4]
              11 ??? (Adobe Photoshop CC + 2351757) [0x10023e28d]
             0x100000000 -        0x103bb5f07  com.adobe.Photoshop 14.1.2 (14.1.2.427) <CC99E953-1231-383F-BC67-BCE95BA4E2A7> /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/MacOS/Adobe Photoshop CC
             0x106bf3000 -        0x107282fef  com.adobe.PlugPlugOwl 4.0.1.34 (4.0.1.34) <762B5A6D-E532-3EDD-9E8C-6A52F77BF985> /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/Frameworks/PlugPlugOwl.framework/Versions/A/PlugPlugOwl
             0x10ff7d000 -        0x10ffffff7  MultiProcessor Support <551607FA-AC71-39ED-871E-0F26335ADF89> /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/Required/Plug-Ins/Extensions/MultiProcessor Support.plugin/Contents/MacOS/MultiProcessor Support
             0x116600000 -        0x116848ff7  com.adobe.PSAutomate 13.0 (13.0) <C674EBC3-36AA-368A-B400-0EB597CC8F23> /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/Required/Plug-Ins/Extensions/ScriptingSupport.plugin/Contents/M acOS/ScriptingSupport
             0x1168cb000 -        0x1168d9fff  com.adobe.boost_threads.framework 7.0.0 (7.0.0.0) <C44EEFDE-8A50-303A-8DF6-197E37C34DFC> /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/Frameworks/boost_threads.framework/Versions/A/boost_threads
             0x118bb8000 -        0x118c19ff7  com.adobe.dvatransport.framework 7.0.0 (7.0.0.0) <0BF14F9A-4525-3A85-8F11-174E23A01D57> /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/Frameworks/dvatransport.framework/Versions/A/dvatransport
             0x11cfdd000 -        0x11d227fff  com.adobe.dvacore.framework 7.0.0 (7.0.0.0) <DE7B7941-89B3-3A19-A7BE-28E9BB2BC2DD> /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/Frameworks/dvacore.framework/Versions/A/dvacore
    Path:            /Applications/Adobe Photoshop CC/Adobe Photoshop CC.app/Contents/Frameworks/AdobeCrashReporter.framework/Required/AdobeCrashDaem on.app/Contents/MacOS/AdobeCrashDaemon
    Parent:          Adobe Photoshop CC [939]
    Responsible:     Adobe Photoshop CC [939]
    Responsible:     Adobe Photoshop CC [939]
    Not sure if any of this helps...

  • ITunes crashes when I'm trying to log in into iTunes store

    After I've made my first purchase (of a music album) in iTunes store iTunes has crashed. And now iTunes crashes when I'm trying to log in into iTunes store. I've tried removing it, deleting iTunes folder in C:\Users\USER_NAME\Music and then installing iTunes. The problem's remained.
    Additional info:
    iTunes version: 11.3.1.2
    Windows 8.1 64-bit.

    I've solved the problem by updating Windows.

  • LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.

    Hello, LV 8.2.1 notes indicates the following bug fix:
    43SAIR2A  Fixed an issue where LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.
    I am running this version, and still have this behavior.  Is there anything I may be missing, and/or certain circumstances that may still be causing this?
    thanks in advance,
    Darren

    Darren:
    I looked at the CAR ID that you mentioned and the issue has been resolved in LabVIEW 8.2.1. To verify something similar, I ran the attached VI and things worked just fine. Please feel free to send me the steps to follow to reproduce the issue you are running into in 8.2.1.
    Regards,
    Rudi N.
    Attachments:
    MixedGraphs.vi ‏15 KB

  • Why Mac crashes when I run the clean speech ring of osx and then run the RestoreTime Machine?

    Why Mac crashes when I run the clean speech ring of osx and then run the RestoreTime Machine? Could it be that I run restore the setup from a usb drive. I've done thisbefore and when it has not been a problem.
    Does anyone have a good answer on this so I'm happy.

    kjell-einar wrote:
    Why Mac crashes when I run the clean speech ring of osx
    What is that?
    run the RestoreTime Machine?
    What are you restoring? 
    Do you mean a full system restore?  Or something else?
    When does your Mac crash -- during the restore, when you try to start up afterwards, or ?

  • My Lightroom CC always crash when it is trying to upload the preview of big images

    My Lightroom CC always crash when it is trying to upload the preview of big images like photo merge images from 3 or 4 RAW images together. Thank You. Marco

    When Lightroom first displays the image, it shows the JPG preview which includes your camera custom white balance settings. (This is probably also what you see in Finder)Then a few seconds later it renders the RAW image, with none of the JPG editing and with none of your camera settings applied. That is what you see in Lightroom.
    There is no way to turn this off.
    You then need to apply your own Lightroom edits to this RAW image to make it look pleasing.

  • LabView crash when intensity graph is in P6 of tab control

    Any available fixes for LabView crash when intensity graph is put on page 6 of tab control and right-clicked??

    Michael,
    This has been fixed in LabVIEW 6.1.
    Regards,
    Cyril Bouton
    Applications Engineer
    National Instruments
    Cyril Bouton
    Active LabVIEW Developper

  • LabVIEW Crashes when Opening Project

    Hey Guys,
    I'm running into an interesting issue where LabVIEW crashes when opening a project. This is the second time I've run into this issue, on the same project. To get around it the first time I simply deleted and re-made my project, but since it's happened again, I need to figure out how to debug it. The symptom is that LabVIEW will crash when opening the project (sometimes I can see the "vi loading" screen) without any indication that crash has occured. It doesn't even launch the error reporter, the process just dies. Anyone know how I can go about debugging this?
    Solved!
    Go to Solution.

    xkenneth86,
    What version of LabVIEW? Have you ever had previous versions of LabVIEW on your computer? Can you attach a screenshot of the crash?
    David H.
    National Instruments

  • Labview crashes when creating large image files

    I have a problem with Labview 6.0.2( I've tested evaluation version 7.0 too).
    I'm constructing a very large image, for example: 4500x4500 pixels. Labview crashes when converting the pixture to a pixmap. The image is fully constructed on my screen (in a picture control), but when converting it to a pixmap (for saving the image in a known format (bmp, jpg, tiff)), Labview crashes.
    I did some testing and when the number of pixels exceeded the limit of 2^24(16777216), the file 'image.cpp' crashes on line 1570. The vi to convert it to a pixmap is: P'icture to pixmap.vi'
    Does someone know a workaround for this problem? Or is there a fix for it?
    Thank you!

    I've tested the 6i version of my VI in Labview 7.0 evalutation version. It raised an error but not the same error:
    d:\lvworm\src\lvsource\compatexport.cpp(37) : DAbort: Called a routine not in the compatibility LVRT table
    $Id: //labview/branches/Wormhole/dev/lvsource/compatexport.cpp#11 $
    0x004BD4CB - LabVIEW_Eval + 0
    0x0EB710D9 - lvs248 + 0
    0x094C87A0 - + 0
    So i replaced the picture VI's with the 7.0 evalutation version VI's, and it worked. It is now possible for me to construct very large image files!
    I see no attached VI to test. But i guess it is also solved in Labview 7.0
    I used this file to convert the picture to image data:
    C:\Program Files\National Instruments\LabVIEW 7.0 Evaluation\vi.lib
    \picture\pictutil.llb\Picture to Pixmap.vi
    And this file to convert image data to bmp:
    C:\Program Files\National Instruments\LabVIEW 7.0 Evaluation\vi.lib\picture\bmp.llb\Write BMP File.vi
    I guess i have to write a workaround for this problem:
    divide the picture in blocks of 4096 x 4096 and then merge the image data arrays of the bloks together.

  • My first gen. iPad exits out of apps and safari at random times when I am trying to use them. So I basically can't do anything on it. Is there some way I can fix this?

    Crashing apps. What do I do to fix it?
    My first gen. iPad exits out of apps and safari at random times when I am trying to use them. So I basically can't do anything on it. Is there some way I can fix this?

    I have the same problem.  Yahoo Sportacular aborts every time I try to open it.  It attempts to load and then the device goes right back to the home screen.  The problem started April 26 after I switched leagues from NHL to NBA. Closing all apps and Restarting doesn't solve solve the problem.
    All other apps on the iPad work fine.  IPad2, OS6.
    Any other suggestions?  I suppose I could delete the app from the iPad and try re-installing it

Maybe you are looking for

  • Sending encrypted emails from the iPad is not working

    I can't get sending encrypted emails working on my iPad3 running iOS 8.0.2 Let me explain what I did: 1. I created S/MIME certificates for 2 email addresses on my iMac in Keychain Access. One email address exists only on the iMac the other only on th

  • How can I see what has been copied to time machine?

    I have set up the way in which I want Time Machine to back up my data but before deleting a large file of photos and music which has been copied from another machine i want to make sure that Time Machine has copied the data. How do I see that this ha

  • Contacts created on iPod do not sync to Exchange server. Outlook created Contacts sync to iPod correctly.

    I have an iPod Touch 4th gen (model MC544LL), running iOS 5.1.1 My Contacts and email synchronize with the corporate Exchange server of my employer. I use Outlook 2007 (Windows) on my Desktop. If I create a contact in Outlook 2007, it synchs to the i

  • Core Audio Overload - Will a New Fire Wire Unit Help?

    I use a G5 2.5Ghz Quad with 6GB of RAM and an Edirol FA-101. I'm finding that the 'Core Audio Overload' is becoming a huge irritant and I've tried multiple driver configurations in Logic Pro 7.2 to correct the problem. Watching the performance, I had

  • How to write a use time function in elsif

    Hai All I have generated an attendance form and my problem is while i am using elsif insert operation there and there is no updation. My need is this is my table structure EMPCODE NUMBER EMPNAME VARCHAR2(25) BARCODE VARCHAR2(25) INTIME VARCHAR2(25) O