LabWindows DLL crash in Release, but not Debug

My LabWindows 2012 CVI application crashes when executing DLL function in Release 64 mode, but not Debug 64 mode.  The 64-bit DLL was created in Matlab, and executes Matlab functionality.
The Just In Time debugger comes up right when the DLL function has finished executing.  If I link the process to LabWindows I get the following error:
A non-debuggable thread caused a 'General Protection' fault at address
 Any ideas?

Hi softengr,
I would recommend determining whether this problem occurs because of the difference in speed between the debug and release modes of LabWindows/CVI.  To do this, reduce the number of debug options by navigating to Options » Build Options..., and select No run-time checking for the Debugging level.  You can also disable some features from the Environment options dialog by unchecking features in the Debug section (Options » Environment...).
You can also try to change the parameters of the Release build by changing parameters in the Build options.  
Are you doing any dynamic memory management inside your DLL?  Are you able to troubleshoot your DLL to find a specific line which causes this crash?
Any additional information about how you are calling your DLL, whether your DLL calls functions asynchronously, etc. would be very helpful and appreciated.
Warm Regards,
Daniel D.
National Instruments
Automated Test Software R&D

Similar Messages

  • Using code interface node with dll crashes LV 2011 but not LV 8.6... using max error handling does nothing

    Hi all,
    I'm having a peculiar problem.
    I inherited a project saved in LabVIEW 8.6. The project must use of particular dll that was built a few years ago. The original developer and source code for this .dll are long gone. The very core logic exists, in the form of embedded C code, and that's it. The .dll is called through a Code Interface Node in LV 8.6 and this setup manages to "work". Howver, running the VI that calls this .dll in LV 2011 causes an "insta crash", as in, no "program has stopped responding".  Error message pops up, then all LV windows close.
    It's very similar to that described in here:
    http://digital.ni.com/public.nsf/allkb/D84C9775ABD921CF8625772A005CA50C
    but this KB says to try putting the amount of error handling to maximum. I tried that, but it didn't help. 
    Using the "Debug" option allows me to run the just-in-time debugger with CVI 2010, which then proceeds to say this:
    Finally, I manage to get this out of it: 
    FATAL RUN-TIME ERROR:   Unknown source position, thread id 0x000012D4:   A non-debuggable thread caused a 'General Protection' fault at address 0x00000000.
    I don't think that really helps at all, but it's there.
    Here is the function prototype of the .dll:
    void  _inputPM@224(uint8_t arg1, uint16_t arg2, uint8_t arg3, float arg4, float arg5, float arg6, float arg7, float arg8, float arg9, float arg10, float arg11, float arg12, float arg13, float arg14, float arg15, float arg16, float arg17, uint16_t arg18, uint16_t arg19, uint16_t arg20, uint16_t arg21, uint16_t arg22, uint16_t arg23, uint16_t arg24, uint16_t arg25, uint16_t arg26, float arg27, float arg28, float arg29, float arg30, float arg31, float arg32, float arg33, float arg34, float arg35, float arg36, float arg37, float arg38, float arg39, float arg40, float arg41, float arg42, float arg43, float arg44, float arg45, float arg46, float arg47, uint16_t arg48, uint16_t arg49, uint16_t arg50, uint16_t arg51, uint16_t arg52, float arg53, float arg54, float arg55, float arg56);
    (never seen a function take 50 input params like that (wouldn't you use a struct? array? something? But I digress, and I don't know anything about .dlls...))  
    I do have a ".lib" and a ".cdb" file with the same name as the .dll, but those also looks like some kind of compiled file. 
    I'm sure the answer I'm going to get is that there is no way of telling what's really going on without .dll source code. I'm hoping against hope that there may be another way or hack.
    Any ideas? Thank you for you help. 
    Regards,
    Mark G 
    Solved!
    Go to Solution.

    MarkCG wrote:
    Changing the call library node to stdcall (WINAPI) did the trick! No more crash. Thank you very much!
    I haven't run LV2011 on windows XP, only on windows 7, so I don't know if that makes a dfference. But  The call type makes no difference when using LV 8.6 on the same machine, however.
    Now I've got to make the .DLL run corretly on a compact fieldpoint....  and avoid crashing IT. 
    Thank you for the help all!
    Well, the DLL did work fine in LabVIEW 8.6 because earlier versions of LabVIEW automatically proceeded to change the calling convention to stdcall, if they noticed a function name decoration of @# (# = number of bytes passed on the stack) appended to the name. This is the default naming decoration for stdcall functions used by VisualC. However this decoration can be overwritten with linker switches, other compilers don't use them always in the same way, and most likely there are in the mean time compilers out there that can produce such decorations also for non stdcall calling convention. So this automagic trickery was removed from newer LabVIEW versions.
    I do think it could be considered a bug in the code that upgrades LabVIEW VIs, that it uses the calling convention that is configuerd in the dialog, instead of the calling convention earlier LabVIEW versions used automagically, but it is an esoteric corner case.
    What Compact Fieldpoint controller do you have? If it's anything newer than 20xx or 21xx forget it. The 22xx controllers use a PPC CPU and VxWorks operating system and can never get a Windows DLL to operate properly. If it is a 20xx controller it's still highly likely that DLL can not even get loaded into LabVIEW as it likely relies on other runtime libraries and possibly Win32 APIs not present in the Pharlap ETS runtime kernel used on those controllers.
    There is a tool to check a DLL for incompatible imports that are not present on specific ETS RT systems. And this list summarizes the RT system used on the various NI controllers.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can TMS warn of objects on released-but-not-imported requests?

    I'm sure this is a common problem: Developer A makes a change to an ABAP program, releases his transport, and imports it to the QA system. Developer B makes a subsequent change to the same program (unaware of Developer A's changes), realeases his transport and imports it to QA. Developer B's QA testing completes first, and his transport is imported to the Production system. Some time later, Developer A's QA testing is completed, and his transport moves to Prod, wiping out Developer B's changes!
    How do we avoid this situation? Is there a way to configure TMS so that it warns Developer B of Developer A's released-but-not-yet-imported-to-Prod transport?
    I am open to all suggestions, including activating user exits in TMS, and coding the warning myself. If that's the only solution, some guidance on TMS user exits and TMS tables I would need to query would be helpful.
    Thanks in advance.

    Well, this thread may be 4 years old, but I have answered my own question (some time ago), and would like to share the answer with the SDN community.
    I ended up activating the BADI CTS_REQUEST_CHECK. In the CHECK_BEFORE_RELEASE method I added my own code to check for "incomplete" transports for any of the objects on the transport being released. The code is pretty involved, but the basic trick is to SELECT all transports for each of the objects in the request from database tables E070, E071, and E07T, then use function TR_READ_GLOBAL_INFO_OF_REQUEST to get the details of each request to determine if it has been imported into the production system.
    Once I have a list of "potentially conflicting" transports, I display it for the user in an ALV grid. I then allow the user to decide whether to go on with the release of the transport, or to cancel the release.
    Cheers,
    Terry

  • How to use the dll  created by c++ but not write a jni wrapper around

    how to use the dll created by c++ but not write a jni wrapper around through a java program. now I can't access that dll like this directly from java.

    Your question is unclear. (You haven't said what dll you are talking about.)
    But:
    If you are talking about an existing dll, then the only alternative to writing a wrapper is to use one of the wrapper generators floating around. Do a search on JACE.
    If you are talking about a dll you are writing, then run jah and get the interface to match java right away; then you won't have to write a wrapper.

  • Safari 3.04 with Tiger crashes on page but not Firefox

    Safari 3.04 on 10.5.1 crashes on page while Firefox has no problems! Safari with previos OS dir not crash on same page.
    Link: https://www.bna.no/#default
    Crashes sporadically within a minute or two by clicking KATEGORIER or paging etc.
    Error is: KERNPROTECTIONFAILURE at 0x0 or KERNINVALIDACCESS at 0x0
    com.apple.WebCore
    com.apple.JavaScriptCore
    The page uses JavaScript/Ajax/WebServices ASP.Net 2.0
    No problems on other Windows XP/Vista/browsers...
    Is this a known scenario ?

    I have a very simple test case for this. Go to the following really simple form and submit it without with or without typing anything in the text box ...
    http://www.oakstreetsoftware.com/bugtest.html
    It doesn't matter what the form processor does, because the form is never submitted. This is a super simple HTML page, and it crashes Safari every time (after installing the latest security update, but not before).

  • Released but not imported tp orders

    Hi Experts!
    Is there a away to list released (approved in D/Q environment) but not imported transport orders ?
    I read all posts regarding FM's around tms, but couldnt find a away to get that orders !
    Thanks in advance,
    Pedro

    Hi,
    If you want Transport Requests, then,
    Check tables, E070, E07T, E070A.
    Use func modile: 'STRF_READ_COFILE' to get the log for the transports.
    If you are talking abt transport orders, then you need to still explore.
    Regards,
    Subramanian

  • H264 file crashes CC 2014 but not CC?

    I have some screen capture video files that load/import fine in premiere pro cc but crash cc 2014 whenever I try to load or import them. This is happening with the two CC applications on the same computer system, so nothing is changing but the app. I can open an empty CC project, import these files in any manner successfully and work with them, then open an empty CC 2014 project, attempt to import any one of these files and the application crashes every time, whether the import is by dragging the file into the project, using the import menu, or by having the clip already exist in the project and attempting to link the media. Been this way consistently since I upgraded to CC 2014 a few months ago.
    The files have non-standard FPS such as 12, 10, etc., which could be the problem, but the question remains why ok in CC but not CC 2014?
    They're all H.264, 640x480, AAC audio.
    This is currently the only problem in CC 2014 on this system, even with a large project with over 14,000 items of various origin, so everything else seems to be working fine.
    Any ideas?
    Many thanks.
    J
    iMac 27"
    10.9.5
    3.5 GHz Intel Core i7
    32 GB RAM
    PP CC 7.2.2
    PP CC 2014 8.2.0

    Thanks for posting that info.  This mirrors the issues I'm seeing with DSLR footage.
    It's so hit or miss if it's going to flicker.  I'll delete renders and re-render and certain clips will be fine, others are now flickering.  I tried to make a test project that demonstrated this issue, but couldn't reproduce the effect.  RGB Curves and Three Way CC are in my list of effects, as well, where I see the issue.
    Just curious, is anyone else working on projects started in other versions/computers?  I've seen it on project started in PPro CC and finished in CC'14.  Saw it again on a project started on Mac in FCP7, converted to CC'14 Win7.  Quite honestly, I haven't been starting projects myself in CC'14 because of the flicker issues.
    As a workaround, I was hoping to import the CC'14 project back into CC or Media Encoder CC, but no luck there.
    Another issue I've had with CC'14 includes converting a CC project to CC'14, giving it to a CC'14 Mac user and the A/V sync is lost.  We abandoned that collaboration all together because of the issues.  CC'14 has been incredibly unproductive to my workflow, despite the great interface update and various other features added.  I haven't had mystery issues like this since CS4.  I'm keeping our post team in CC as much as possible until the issues are resolved.
    -JB

  • AVCHD Import crash on 1080i but not 24p on HDC-SD9

    24p works fine for my SD9
    1080i crash during import.
    Console Debug seems to suggest something in the library conflicting with AVCHD.RADPlug and P2.RADplug
    5/23/08 11:04:55 PM [0x0-0x9c09c].com.apple.FinalCutPro[1061] objc[1061]: Class MIOGenericUserDefaults is implemented in both /Applications/Final Cut Pro.app/Contents/PlugIns/AVCHD.RADPlug/Contents/MacOS/AVCHD and /Applications/Final Cut Pro.app/Contents/PlugIns/P2.RADPlug/Contents/MacOS/P2. Using implementation from /Applications/Final Cut Pro.app/Contents/PlugIns/P2.RADPlug/Contents/MacOS/P2.
    5/23/08 11:05:03 PM Final Cut Pro[1061] WARNING: Using deprecated NSTreeController internal API. Break on ‘observedObject’ to debug. Use of this method should be replaced by NSTreeNode/representedObject
    5/23/08 11:05:29 PM Final Cut Pro[1061] * -[NSLock unlock]: lock ( ‘(null)’) unlocked when not locked
    5/23/08 11:05:29 PM Final Cut Pro[1061] * Break on _NSLockError() to debug.

    *24p works fine for my SD9*
    *1080i crash during import.*
    It would be helpful if you would explain these two phrases.
    I imported 1080/24p from this cam as well without crashes.
    What are you shooting in?

  • Agentry App crashes on Device but not in the ATE Testenvirement

    Hello,
    we make a app which works fine in the ATE Testenvirement and also in a iPhone but our main Plattform is the The WIndows Mobile Pocket PC.
    We use a Motorola MC65 with Windows Mobile 6.1 Professional.
    On the Motorola the app crashes in a definite transaction when we close the transaction screen.
    Workflow is this: we open a detail screen with a listview -> with double click we pick a object from a collection and  starts the transaction -> close the transaction screen -> now a rule decide what will happen (you can see the rule in the picture) -> but the app crashs before something happens.
    Could we debug the client or could we create some loggings on the device? We dont know how we could find out why the app crashes. (as information: if the agentry client crashes on this point, we could not end the task from the agentry client with the task manager, we have to restart the Motorola client)
    Thanx,
    André
    Tags edited by: Michael Appleby

    Hallo,
    now we fixed the problem.
    As i told you we start the transaction screen from the detail screen and after ending the gtransaction the screen did not close and the client did not respond anymore.
    We fixed the Problem in this way that we do a navigationstep after the transaction step. In this we make the decision which screen should be shown as the next screen an open it. Thats all. In all other Client beside the WinCE Client the Transactionscreen closed and we could see the last detail screen. But on the  WinCE Client we nedd the navigation step.
    I dont know if this is a bug from the WinCE Agentry Client Version 6.1.4.54024 but this workarpund was the solution for us.
    @Jason: we breaking the rule down to separate subrules so the debugging in much better but we loose the reference to the object we used in the main rule, so we keep the active object refernce in a temp attribut at the main object and  get the active object with this id in the subrules

  • ZMRBR - invoices released but not in FBL1N

    Hello everybody,
    I have a problem with a few invoices which were released in ZMRBR (through management approval) but the invoices were not automatically released in FBL1N. But because the invoices had to be paid quickly, I had to manually release them through FB02.
    Does anybody know why the released invoices in ZMRBR were not also automatically released in FBL1N?
    Thanks for your help.

    Hi,
    What do you mean by not released? Parked, Blocked for payment, etc?
    ZMRBR is custom transaction. If you're not using a standard program we'll not be able to help much since we don't know which
    program was used and what it does. You'd have to check it with your ABAP team.
    Is it reproducible or was it an one time error?
    Regards,
    REnan Correa

  • Flash player crashes in firefox but not in waterfox ??

    i have tried the downgrade to ver 10 of flash. no problem in firefox but now my other programs that use flash will not run. error messages say that i am not up to the correct version. i uploaded waterfox and have had no problems using the latest flash. can you take the waterfox program segments and move them to firefox?
    mark

    You can check for problems with current Flash plugin versions and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    *http://kb.mozillazine.org/Flash#Troubleshooting
    *http://helpx.adobe.com/flash-player/kb/flash-player-113-crash-mozilla.html

  • Changing a patch or sound on ext synth crashes GB 08 but not GB 3 pros help

    Here we go again, **** it!
    too good to be true!
    I havent tried this on logic express but maybe you guyz can figure this one out......
    had a great system that never crashed!
    i have a korg X50 audio outs that go into audio in of QUAD G5.
    If i pick a real instrument tk and hit monitor on and play it records from my synth. If i change the patch no matter how
    just changing the patch crashes GB vs 4.0!!!!!!!!!!!!!!!!!!
    before i go crazy is there something im not doing here?
    i had a wonderful working usable external KORG adding all the voices i wanted to GB3 but now no longer.
    i do not use an audio interface. is this the problem now

    i do not use an audio interface. is this the problem now
    No, just sounds like a GB problem. Don't use GB, I think my version is v2.00 so I can't be much help. You mifgt want to check over on the GB forum and see if others are having the same problem.
    I can think of a couple of things to try.
    Does GB'08 crash if you're on a MIDI track when you change patches?
    If no, a workaround might be to select a MIDI track before changing patches then back to a real instrument track.
    If it still crashes it's possible you have a midi loop, does GB'08 have a MIDI Thru enable/Disable?
    good luck-
    Pancenter-

  • MBP Boots Forever/Crashes on First (but not Second) Boot

    Hi,
    I am experiencing a somewhat odd phenomenon with my MBP:
    If I close the lid without sleeping the MBP, the battery might keep on draining and when I open the MBP again later, all battery charge is gone.
    If I now reconnect (power) and boot up the MBP, the MBP will not go past the stage where there is a grey background and the "beachball"... I had it in this stage for up to 2 hours, it is just not booting any further. If I do a hard reset (holding power button for 8 sec), the MBP boots normally... So, the MBP crahes on the first boot, but boots (always) successfully on the second boot.
    The problem with the current state of things is, that I am regularily loosing work, as the latest files that were open are gone if not saved (which I tend to forget, as closing the lid does not always, and should never, lead to a system crash). I have Word set to auto-save every two minutes, but that does not always work and some other tools do not have that option.
    My questions are:
    1.) How can I make sure that closing the lid actually sleeps the MBP? (I was researching the problem and found that some people claim that this might be a problem of the Mac not being able to quickly enough dump my 8GB of RAM, and that disabling "safe sleep" via Terminal might solve the problem... it did not help).
    2.) How can I prevent the make from freezing on the first boot? (I have also research that, but could not really find somehting specific. I have tried checking disk with disk utility (all OK) and reparing permissions to no avail).
    I also had the MBP checked for hardware issues in the Store, and had Mavericks clean installed not long ago (had the same problem with Snow Leopard)...
    Could it be my 4GB RAM extension? Or some specific app causing the problem? Any standard procedures to follow to narrow the issue down?
    Cheers for any solution or workaround ideas!

    Hi,
    Thank you for helping me.
    pmset -g
    Active Profiles:
    Battery Power                    -1
    AC Power                    -1*
    Currently in use:
    standbydelay         4200
    standby              0
    womp                 1
    halfdim              1
    hibernatefile        /var/vm/sleepimage
    sms                  1
    networkoversleep     0
    disksleep            10
    sleep                0 (sleep prevented by InternetSharing, coreaudiod, coreaudiod)
    autopoweroffdelay    14400
    hibernatemode        1
    autopoweroff         1
    ttyskeepawake        1
    displaysleep         60
    acwake               0
    lidwake              1
         pmset -g assertions
    Assertion status system-wide:
       BackgroundTask                 0
       PreventDiskIdle                0
       ApplePushServiceTask           0
       UserIsActive                   1
       PreventUserIdleDisplaySleep    0
       InteractivePushServiceTask     0
       PreventSystemSleep             1
       ExternalMedia                  0
       PreventUserIdleSystemSleep     1
       NetworkClientActive            0
    Listed by owning process:
       pid 48(InternetSharing): [0x0000000800000172] 54:15:44 DenySystemSleep named: "com.apple.InternetSharing"
       pid 176(coreaudiod): [0x0000000100002563] 00:13:32 NoIdleSleepAssertion named: "com.apple.audio.'AppleHDAEngineOutput:1B,0,1,1:0'.noidlesleep"
       pid 176(coreaudiod): [0x00000001000010ee] 31:46:01 NoIdleSleepAssertion named: "com.apple.audio.'BoomEngine:0'.noidlesleep"
       pid 50(hidd): [0x0000000a00002554] 00:16:54 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"
              Timeout will fire in 3595 secs Action=TimeoutActionRelease
    No kernel assertions.
    Can you tell anything from these responses?
    I will also reset the SMC now (also I believe to have done that before)...
    Kind regards

  • Adobe flash crashes in Firefox but not with Internet Explorer

    I don't wish to go back to an earlier version of Adobe flash as the earlier version caused other problems.i.e. with RealPlayer. Why is it that the latest Adobe flash works perfectly with Internet Explorer but will not work with Firefox.
    Is there any way I can get it to work with Firefox, rather than when the problem occurs having to download IE and start again?
    Would appreciate your advice. Thanks

    #Try disabling Flash Players protected mode.
    #*http://kb.mozillazine.org/Flash#Flash_Player_11.3_Protected_Mode_-_Windows
    #*http://kb.mozillazine.org/Flash#Flash_Player_11.3_Protected_Mode_-_Windows
    #* both of the above articles will be worth scrolling through for information and linked articles.
    #Also ensure Real Player related software is fully updated, and check the RealPlayer support forum for any recently reported issues. Maybe ask yourself if you find nothing.
    Also try with hardware acceleration turned on or turned off. Use both the Firefox control and the FlashPlayer control for that setting.
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems#w_turn-off-hardware-acceleration]]'''#w_turn-off-hardware-acceleration'''
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html <br/>N.B Adobe control panel also available from right click of the playing video.

  • Audio 1 & 2 crash sample editor but not other tracks

    I've been working out this problem for a while and while not getting any conclusive solution, I am narrowing the behavior down a bit. Because of my M-Audio Firewire Solo interface I record DI guitar parts in mono on input 2. If I open an audio file recorded this way in the sample editor and copy a section, I can pretty much count on getting "I/O error = -36" when I try to paste this copied selection into another section of the file. Frequently closing this error prompt crashes the editor or causes erratic behavior such as the black & white beach ball appearing elsewhere within Logic. This doesn't happen if I do one of two things: Either import a pre-recorded stereo audio file (AIFF, WAV or REX) into Audio 1 or 2, or create a mono or stereo track 3, 4, etc. and record in that. In either case I can edit normally without trouble. Why only these tracks? I've tried different buffer settings as well as trashing my preferences and it doesn't matter. Makes no difference if I'm writing to system disk or external HD. I'm recording AIFF at 24 bits. Thanks. - Emile

    That did it! For future users, make sure the link button in the upper right hand of the timeline is black (not green). Click on the audio track that you want to un-link. Go to modify->stereo pair. Then, you can delete either audio1 or audio2. Thanks so much!

Maybe you are looking for

  • CS6  won't play mts audio,,,

    Ok, I have the latest version of CS6,just uninstalled mine and re-installed. I am running a windows 7 64 bit cpu, I have a mts file in an avchd format.  The problem is my desktop will not play the audio of this file that is giving me trouble.  It pla

  • IMac - sleeping problem

    Hi Guys, i have new model of iMac (Late 2012 with 10.8.3) and i have in my point of view problem with "deep sleep". 1) after about 60 min (pmset -g, timer - autopoweroffdelay14400) away from keyboard iMac sleeps "deep sleep". 2) no possible to wake-u

  • Optical drive won't open

    How can I manually open the optical drive on my Mac Pro? There is no paperclip hole that I can see. Thanks in advance. (I searched for this and found nothing. It's hard to believe it hasn't been asked.)

  • Windows Convert...

    Ok so I got myself a PowerMac G4 from ebay, and upgraded it, and it now has the following specs: - PPC G4 400mhz - 758mb Ram - AGP Radeon 7000 64mb (running at AGP 2x, was originally a PC version, so I had it flashed with mac firmware) - SuperDrive -

  • EJB calling Spring Bean with non XA Datasources causing Rollback Exception

    We have an EJB CMT with Required calling a spring bean (@Transactional Propagation.NOT_SUPPORTED). This is causing an Rollback Exception saying 2 phase commit must be enabled. The EJB has to write to datasource 1, but the Spring Bean is ready only on