System crash when DAQmx call to USB DAQ device is powered off

My PC crashes when I attempt communication with a NI DAQPad 6015 USB device which is in the powered off state. I am attempting to add error handling to my LabView application to cover the above condition, however, instead of receiving a error message, my PC crashes. When the device is powered on, my LabView routine works properly. I created the vi using the DAQmx DAQ assistant for a simple analog read from the device. I want to add the potential error handling condition to cover the case in which a user may attempt to run the software without turning on the device. When I attempted to run my vi twice with the device powered off, my PC crashed both times. The 2nd time, during reboot, I discovered that MAX was corrupted and had to repair using the installation CD.
I am using LabView 7.1 with DAQ 7.4 on Windows 2000.
Is there a known fix or workaround to this issue? Or is there a way to detect the presence of the device first before trying a DAQ read?
Thanks,
Joel

Thanks very much for both your responses. I tried it again, but as you suggested, I used one of the example vi's. I chose the following:
Acq&GraphVoltage-IntClk.vi found within: Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage
I first tested the example vi with my DAQPad-6015 powered on. The vi successfully ran without error. I then turned the DAQPAd power off and ran the vi again. My system immediately crashed leaving me with a blank screen (with streaky lines) and forcing me to reboot. After reboot, I discovered that I can no longer open any of the DAQmx examples that are compatible with the DAQPad-6015. All are corrupted. Curiously, MAX was not corrupted again. I will have to re-install all examples and possibly LabView itself.
Based on your feedback, I am guessing you will tell me that repeating the above on your system will simply produce an error message, as expected. It appears that I may have a fundamental incompatibility between my specific system hardware and DAQmx/LabView.
Regards,
Joel

Similar Messages

  • Installed E3000 now system crashes when online

    Soon after installing the E3000 I began to experience frequent system crashes when online.  Installation seemed to progress without any issues.  PC, Windows XP Pro SP3, is wired though router, also able to access net with netbook, Windows 7 Starter, without issues.  After several crashed I pulled up the event log and here is what I found.  Tried to use Linksys online chat for assistance but they said the problem was with my computer and that I needed to contact my vendor.  Since I built this pc I'm on my own and would appreciate any guidance on how to serolve this.
    Thank you for your time.
    System Errors
    Event Type:             Error
    Event Source:         DCOM
    Event Category:       None
    Event ID: 10016
    Date:                       4/9/2011
    Time:                       12:23:42 AM
    User:                        NT AUTHORITY\NETWORK SERVICE
    Computer:               
    Description:
    The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID
    {BC866CF2-5486-41F7-B46B-9AA49CF3EBB1}
     to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20).  This security permission can be modified using the Component Services administrative tool.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type:             Error
    Event Source:         Service Control Manager
    Event Category:       None
    Event ID: 7000
    Date:                       4/9/2011
    Time:                       12:03:36 AM
    User:                        N/A
    Computer:               
    Description:
    The Print Port Scanner Driver service failed to start due to the following error:
    The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type:             Error
    Event Source:         DCOM
    Event Category:       None
    Event ID: 10016
    Date:                       4/8/2011
    Time:                       11:58:43 PM
    User:                        NT AUTHORITY\LOCAL SERVICE
    Computer:               
    Description:
    The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID
    {BC866CF2-5486-41F7-B46B-9AA49CF3EBB1}
     to the user NT AUTHORITY\LOCAL SERVICE SID (S-1-5-19).  This security permission can be modified using the Component Services administrative tool.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type:             Error
    Event Source:         DCOM
    Event Category:       None
    Event ID: 10016
    Date:                       4/8/2011
    Time:                       11:58:43 PM
    User:                        NT AUTHORITY\LOCAL SERVICE
    Computer:               
    Description:
    The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID
    {BC866CF2-5486-41F7-B46B-9AA49CF3EBB1}
     to the user NT AUTHORITY\LOCAL SERVICE SID (S-1-5-19).  This security permission can be modified using the Component Services administrative tool.
    Event Type:             Error
    Event Source:         System Error
    Event Category:       (102)
    Event ID: 1003
    Date:                       4/8/2011
    Time:                       11:49:21 PM
    User:                        N/A
    Computer:               
    Description:
    Error code 100000d1, parameter1 00a8c36e, parameter2 00000002, parameter3 00000001, parameter4 8a54e6f7.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 53 79 73 74 65 6d 20 45   System E
    0008: 72 72 6f 72 20 20 45 72   rror  Er
    0010: 72 6f 72 20 63 6f 64 65   ror code
    0018: 20 31 30 30 30 30 30 64    100000d
    0020: 31 20 20 50 61 72 61 6d   1  Param
    0028: 65 74 65 72 73 20 30 30   eters 00
    0030: 61 38 63 33 36 65 2c 20   a8c36e,
    0038: 30 30 30 30 30 30 30 32   00000002
    0040: 2c 20 30 30 30 30 30 30   , 000000
    0048: 30 31 2c 20 38 61 35 34   01, 8a54
    0050: 65 36 66 37               e6f7   

    Thank you for the link to modify the permissions in the DCOM Server. 
    To assign permissions
    Using Regedit, navigate to the following registry value
    HKCR\Clsid\clsid value\localserver32
    The clsid value is the information displayed in the message.
    In the right pane, double-click Default. The Edit String dialog box is displayed. Leave this dialog box open.
    Click Start, and then click Control Panel.
    Double-click Administrative Tools, and then double-click Component Services.
    In the Component Services snap-in, expand Computers, expand My Computer, and double-click DCOM Config.
    In the right pane, locate the program by using its friendly name.
    Right-click the program name, and then select Properties.
    On the Security tab, in the Launch and Activation Permissions group box, select Customize, and then click Edit.
    When I get to #6 I do not know which program/friendly name to select.  How do I know which one is the issue?
    Thanks for the assistance.

  • System crash when play music

    975x +ICH7DH Platinum power up edition
    OCZ 1gb DDR2 Ram
    ATI Redeon x800xl video card
    SEagate HDD
    SATA mode IDE
    after installation Windows XP Pro, seem ok but system crash when play music.
    Can anybody help?

    Are you using the onboard audio, or you have an additional sound card installed on your system. If you are using the onboard audio, check if you have a proper installation of the Realtek HD audio drivers, and if you are using another sound card, you have to disable the onboard audio controller in BIOS.

  • System crashes when put to sleep or restart

    My system crashes when put to sleep or when I click re-start. This also happens when applications start and need to take over the entire screen. Once it crashes, I cannot start the computer for approx 5 minutes. I cannot re-start in safe mode because it also crashes. I cannot start with the application disc because the dvd drive pops open when I start the system. I have tried shutting the system down from the menu bar and the screen exits to the desktop window, but doesn't shut off. I have used disc utility to repair permissions and have re-set the pram, but the problem remains. I have a G4 gigabit/ethernet, running OSX 10.4.11, with an Apple Studio Display and ATI Radeon 9000 Pro graphics card. This has been going on for a while - I am not sure if it started when I installed OSX tiger or when I added two new ram memory chips (I have four added, 2 512 SDRAMM and 2 128 SDRAMM). Please advise. Thank you.

    I am not sure if it started when I installed OSX tiger or when I added two new ram memory chips (I have four added, 2 512 SDRAMM and 2 128 SDRAMM).
    The absolute first step in troubleshooting is to remove the recently added RAM.
    That will remove question regarding the RAM.
    Have you tried a Safe Mode boot (hold Shift while booting)?
    This will allow for automatic system repairs. While in safe mode, does the sleep function work?
    From Safe mode, does the restart function work?
    If after removing the RAM, and after Safe mode, the problem persists, a PMU reset may be worth trying.
    The PMU controls all power functions, sleep and shut down and start. Corruption in the PMU will cause problems with these functions, and a reset will clear this up if the PMU is the root cause.
    http://docs.info.apple.com/article.html?artnum=86760

  • Why is my USB DAQ device not detected by Windows?

    Hello,
    I had my USB-6229 connected to my PC (Windows 7 64bit) this morning and everything was fine: Windows detected the device, the device showed up on on NI MAX, and testing through NI MAX was successful. I then installed the NI DAQmx 9.8 driver to replace the NI DAQmx 9.6 driver that I was using (the DAQ Assistant icon in my functions menu in LabVIEW 2013 was not present, and this upgrade fixed that issue). Unfortunately, Windows now no longer recognizes the same DAQ device that worked earlier this morning.
    Here's what I've tried so far:
    Uninstalling the 9.8 driver and re-installing the 9.6
    Tested another USB DAQ device; Windows could not detect it either
    None of the DAQ devices register on WIndows's device manager (usb ports not broken, as the flash drives I inserted showed up on device manager)
    As expected, none of the devices show up on NI MAX
    Does anyone have any suggestions on what may have happened when I upgraded from the 9.6 driver to the 9.8?

    Thanks for your reply, Philip. Yes, I did reboot my computer after installing the driver.
    I contacted NI support, and we were unable to reach a solution, so, as a last effort, re-installed the driver for the third time, which finally worked. I'm not sure what the problem was, but here are some extra steps I took before re-installing the driver that may benefit those who encounter a similar problem:
    1. As Philip mentioned, start the NI Device Loader if it has not been started or stop/start it if it has. The startup status ought to be set to "automatic." You can find the NI Device Loader by starting Task Manager, selecting the "Services" tab, then selecting the "Services" button. Scroll down the list until you find it.
    2. Open up Device Manager and search for your device (mine was labeled as "unidentifiable"). Right click and select "Properties." Select the "Driver" tab. You may need to manually select the driver folder, which should be located in C:\Windows\system32\DRIVERS.
    Hope that helps.

  • Which usb DAQ device to buy ?

    I am a total Noob when it comes to DAQ so please bear with me and help me with suggestiions on which NI USB DAQ to buy. I am biochemist and I have an old HPLC machine (basically a chemical purifying/seperation machine) I need to control by writing a labview program. I have labview 2013 and have some basic familiarity with it, and have used very easy VIs like blinking LEDs using arduino interface.
    My current project needs me to:
    1) control the flow rates on two pumps using their remote controller and vary their flow rates by varying voltages (0-10V) at not higher than 3 mA input current. basically, I need to be able to vary voltages on two analog pins. I am attaching the manual for the pump for more info. The pinout on the remote controller is on page 16/17 of the manual.
    2) I need to read analog voltage outputs from these two pumps (which measures the hydrostatic pressure) and save it to something like in .csv file.
    3) lastly, I need to read a analog output from a UV detector which will be in mV range and plot it and/or save that to .csv file .
    There are a bunch of NI DAQ USB devices which seems like they can do this job, my problem is that dont know enough to reliably make a judgement on which one to buy for this project. My budget is limited and I would definately like to do it with as cheap a DAQ as possible since we have multiple instruments like this, and we are planning to get rid of ancient 1990s computers running the original software and replace it with a USB DAQ device coupled with a labview program on a modern PC. The HPLC machines are far apart hence we run them on individual PCs instead of running a bunch on one computer through a DAQ device.
    I know its a whole bunch of questions, but I'll be glad for any guidance on this. also, to do the things I just described, how difficult do you guys think the VI would be if I use a NI DAQ and hopefully dont have any driver/communication  issues.
    Attachments:
    shimadzu-lc-6a-hplc-pump-service-manual-eng.pdf ‏985 KB

    I highly recommend you look up your local NI representative and have a nice sit down with them.  They can go over your requirements and give you really good advice on which device to get.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Early this morning from my way to office when I plug my iPhone 3gs to my itrip in my car it is working fine. But when somebody called in my iPhone it suddenly turn off, and I can not turn it on again. I really don't know what to do, please help me?

    Early this morning from my way to office when I plug my iPhone 3gs to my itrip in my car it is working fine. But when somebody called in my iPhone it suddenly turn off, and I can not turn it on again. I really don’t know what to do, please help me?

    Early this morning from my way to office when I plug my iPhone 3gs to my itrip in my car it is working fine. But when somebody called in my iPhone it suddenly turn off, and I can not turn it on again. I really don’t know what to do, please help me?

  • System crash when using Quatech QSU-100, 4serial port to USB

    I'm Using a Quatech QSU-100 4 port 232 to USB converter with a Gateway laptop running XP. When running my labview program to read the ports I get system crashes where the error message is the the USB drivers are at fault. Has anyone sloved this problem?

    Have you contacted Quatech with this issue? They might have better answers.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Unresolved kernel trap(cpu 0) - System crash at phone connection via USB

    Hi all,
    when I connected my Blackberry via USB, my system crashed (grey monitor, "You need to restart…").
    Should I be worried?
    Thank you very much
    Peter
    Report:
    Unresolved kernel trap(cpu 0): 0x400 - Inst access DAR=0x000000004861EE54 PC=0x0000000000000000
    Latest crash info for cpu 0:
    Exception state (sv=0x474D5280)
    PC=0x00000000; MSR=0x40009030; DAR=0x4861EE54; DSISR=0x40000000; LR=0x000912A8; R1=0x2D043CD0; XCP=0x00000010 (0x400 - Inst access)
    Backtrace:
    0x00000003 0x00091514 0x00044C18 0x0002921C 0x000233F8 0x000ABCAC
    0x00000000
    backtrace terminated - frame not mapped or invalid: 0xBFFFF240
    Proceeding back via exception chain:
    Exception state (sv=0x474D5280)
    previously dumped as "Latest" state. skipping...
    Exception state (sv=0x454ECC80)
    PC=0x9000B6E8; MSR=0x0200F030; DAR=0x4861EE54; DSISR=0x40000000; LR=0x9000B63C; R1=0xBFFFF240; XCP=0x00000030 (0xC00 - System call)
    Kernel version:
    Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; root:xnu-792.17.14~1/RELEASE_PPC
    panic(cpu 0 caller 0xFFFF0004): 0x400 - Inst access
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x000952D8 0x000957F0 0x00026898 0x000A8004 0x000AB980
    Proceeding back via exception chain:
    Exception state (sv=0x474D5280)
    PC=0x00000000; MSR=0x40009030; DAR=0x4861EE54; DSISR=0x40000000; LR=0x000912A8; R1=0x2D043CD0; XCP=0x00000010 (0x400 - Inst access)
    Backtrace:
    0x00000003 0x00091514 0x00044C18 0x0002921C 0x000233F8 0x000ABCAC
    0x00000000
    backtrace terminated - frame not mapped or invalid: 0xBFFFF240
    Exception state (sv=0x454ECC80)
    PC=0x9000B6E8; MSR=0x0200F030; DAR=0x4861EE54; DSISR=0x40000000; LR=0x9000B63C; R1=0xBFFFF240; XCP=0x00000030 (0xC00 - System call)
    Kernel version:
    Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; root:xnu-792.17.14~1/RELEASE_PPCModel: PowerMac8,2, BootROM 5.2.5f1, 1 processors, PowerPC G5 (3.0), 2 GHz, 2 GB
    Graphics: ATI Radeon 9600, ATY,RV351, AGP, 128 MB
    Memory Module: DIMM0/J4000, 1 GB, DDR SDRAM, PC3200U-25330
    Memory Module: DIMM1/J4001, 1 GB, DDR SDRAM, PC3200U-25330
    AirPort: AirPort Extreme, 405.1 (3.90.34.0.p18)
    Modem: Jump, V.92, Version 1.0
    Bluetooth: Version 1.7.14f14, 2 service, 1 devices, 1 incoming serial ports
    Network Service: Ethernet (integriert), Ethernet, en0
    Serial ATA Device: Maxtor 6B250S0, 233.76 GB
    Parallel ATA Device: MATSHITADVD-R UJ-845
    USB Device: Bluetooth HCI, Up to 12 Mb/sec, 500 mA
    USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
    USB Device: Kensington Expert Mouse, Kensington, Up to 1.5 Mb/sec, 100 mA
    USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA

    Hi Peter. I have the same problem with my Mac and BlackBerry 8703e. But I have found the problem only occurs if the BB is connected to my iMac via the USB cable when I boot up the Mac. To resovle this I leave the BB USB cable unconnected from the Mac until I need to sync using PocketMac. The rest of the time, my BB is plugged into its power adapter cable in order to stay charged. Still a weird problem though!
    David

  • Skype crashing when I call somebody freezing my wh...

    It's crashing when I skype call, I'll copy paste some of the information here. It works on older versions but when I update past 6.3 It doesn't let me go through.
    Time of this report: 10/7/2014, 21:20:01
    Machine name: NATHAN-PC
    Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.140303-2144)
    Language: English (Regional Setting: English)
    System Manufacturer: ASUS
    System Model: All Series
    BIOS: BIOS Date: 04/10/13 12:19:42 Ver: 04.01
    Processor: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (8 CPUs), ~3.4GHz
    Memory: 12288MB RAM
    Available OS Memory: 12228MB RAM
    Page File: 2864MB used, 21589MB available
    Windows Dir: C:\Windows
    DirectX Version: DirectX 11
    DX Setup Parameters: Not found
    User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
    DWM DPI Scaling: Disabled
    DxDiag Version: 6.01.7601.17514 32bit Unicode
    Solved!
    Go to Solution.

    Please,  run the DirectX diagnostics tool (32-bit version).
    Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post.
    Be aware that you will have to zip this file before attaching it here.

  • System crashes when i use any input field after installing Maverick

    Hello all.
    I have a 2010 macbook air, and have just installed Maverick OS.
    Now every time i go to any input field to type in a web address or apple id, the system crashes
    and re-boots. Tried to alter keyboard properties nothing works.
    I presume i will have to do a factory re-set, because i can not load any updates because I am asked
    for apple ID, which i cant enter because computer crashes... Oh right i mentioned that already ;)
    Help advice welcome!
    Rgds from frustrated in Sweden!!!!

    There was an issue similar to this that was resolved with DAQmx 9.3 update. If you haven't done so already, update the driver to 9.3 and try again. If not, try opening an example (like, say, Hardware I/O->DAQmx->Analog Meas->Voltage->Cont Acq&Graph Voltage-Int Clk-Analog Start.vi), and try running that standard example. If the example works and you still have difficulty with your application, could you post information about your project and what navigational steps you take to make the error occur? Try also opening the VI inside and outside of a project (this would diagnose a symptom of the issue resolved by DAQmx 9.3).
    - Regards,
    Beutlich

  • The LV crashed when I call a dll to control my com port

    I am controlling the com port with calling a dll(dwdio.dll--see the attachment). The VI I used is also attached below.
    I just used four functions of this dwdio.dll, as followings:
    1. bool DWD_set_comport(unsigned char com_port,int *handle)
    Parameter config:return type--unsigned 8-bit int(value),com_port --unsigned 8-bit int(value),handle--signed 32-bit int(point to value)
    bool DWD_set_baud_rate(int baud,int *handle)
    Parameter config:return type--unsigned 8-bit int(value),baud--signed 32-bit int(value),handle--signed 32-bit int(value)
    bool DWD_check_comm_link(int *handle)
    Parameter config:return type--unsigned 8-bit int(value),handle--signed 32-bit int(value)
    bool DWD_close_com_port(int *handle)
    Parameter config:return type--unsigned 8-bit int(value),handle--signed 32-bit int(value)
    I can run my vi successfully,but Labview will crashed when I close Labview application. I tried many ways to change the parameters and convention, but there is no effect.
    Because this dll file need hardware dongle,so I can't upload the vi. I just attached the screen-shot of it.
    Can anybody have some analysis on my vi to give me some valuable suggestion?
    Attachments:
    dwdio & explanation &my vi.zip ‏2456 KB

    Yaoming wrote:
    > SVences,<br><br>I know that Erroneous data types assignments can cause crashes.
    > I have checked all the data type with my experience and knowledge,but I didn't
    > find anything should cause this crash problem.<br><br>After all,I am not very
    > experienced in Call Library Function, so maybe my vi still have some erroneous
    > data type assignments. Can any DLL expert help me to locate them?
    > For the original function description, I have posted as attachment in the first
    > post. Therefore,anybody who want to check my data type error can have a check
    > with that function description.
    > That issue is very urgent and important to me. Can anybody to help me sort
    > this problem as soon as possible? Thanks in advance.
    A few remarks:
    1) the Bool return value is probably an int. It doesn't look like a
    standard Widnows datatype so you will have to look in the documentation.
    However this is unlikely to crash your code.
    2) The handle parameter for DWD_set_comport should be set as Pass:
    Pointer to Value. All other parameters should be passed by Value only as
    they are not pointers at all. Also please wire a 0 constant to the right
    side of the CLN for that parameter to provide memory for the DLL to
    write in.
    3) The calling convention for the DLL functions is not obvious from your
    documentation. You have the choice between C (cdecl) and WINAPI
    (stdcall) on Windows. Since this DLL seems to be available for multiple
    platforms (The remark for each function) it may be that the developer
    decided to use cdecl calling convention (a smart choice I would say) but
    Windows DLLs usually use stdcall instead.
    Having the wrong one will absolutely crash LabVIEW but usually at the
    moment you return from the functioncall and not later on.
    So I would guess the most probable cause is number 2, but don't discount
    the other ones completely.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • My system crashes when i use my soundblaster on my KT6 delta LSR

    (English is not my native language, so sorry for the mistakes)
    Hi, i'm new here and i need help, i just bought a KT6 Delta LSR (integrated 5.1 sound) and i want to use my good old soundblaster live! 5.1 but when i disable de integrated sound and plug my sound card the system, in the middle of windows operation (windows always boot), all of a suddden crashes or simply the sound freezes and stay in the same sound over and over again and then the whole system hangs and i have to reboot the system.
    I have no idea of what could be causing the problem...
    When i use the integrated sound it works fine and in stranges cases (for example: when i'm connected to the internet for more than 30 minutes) the system hangs, but with the sound card would not work 15 minutes ok.
    Hope you can help me.... Thanks

    Hi, i have noticed something.... it seems like the sound card has nothing to do with the problem, because i also have my system hanging when i use my modem (which is also a pci device), so i guess that the problem is someway related to the pci bus, can anyone help me???
    The system works fine when i don't use the sound card or the modem, if i put some music it hangs before the first song ends, and with the modem it takes like 30 miutes to freeze, and i have to reboot.
    Wish someone can help me.

  • System crash when trying to connect IPod touch (blue screen)

    Hello all!
    All of a sudden, my computer running on Windows XP doesn't recognize my iPod touch anymore. Changing the USB-Port and re-installing iTunes did not help. The actualization of the driver resulted in the system to recognize the iPod for a couple of seconds, but then the system crashed and a blue screen appeared, which made it necessary to restart the system. I had the same thing four times today now and have absoultely no idea what else I could do. Can anyone help?
    Thank you in advance!
    Message was edited by: globi_lu

    I too just had my itouch completely crash. I was attempting to sync and a pop up asked about updating my itouch. I agreed. Only to get the frozen apple screen with the download bar. Now I can't even reset my itouch or get my computer to recognize my itouch. PLEASE HELP!!

  • System crash at second call

    Hello,
    the code below works ok the first time I make a call, but the second time leads to system crash, see error message below. What do I do wrong?? If I take away the marked line in the code, it works ok...
    Thanks in advance!
    JNIEXPORT void JNICALL Java_thermod3_jtc_1phconst
    (JNIEnv *env, jobject obj, jstring ph){
    int nofs, nofcon[5], llen = 8;
    const jbyte *str;
    str = (*env)->GetStringUTFChars(env,ph,NULL);
    if(str == NULL)
         return;
    nofs = phase_constituents(str,nofcon,constnames,llen); // <---
    (*env)->ReleaseStringUTFChars(env,ph,str);
    return;
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x400215D0
    Function=pthread_getspecific+0x94
    Library=/lib/libpthread.so.0
    Current Java thread:
    Dynamic libraries:
    08048000-0804e000 r-xp 00000000 00:09 458006 /usr/local/j2sdk1.4.2_01/bin/java
    0804e000-0804f000 rw-p 00005000 00:09 458006 /usr/local/j2sdk1.4.2_01/bin/java
    40000000-40015000 r-xp 00000000 03:02 4559 /lib/ld-2.2.3.so
    40015000-40016000 rw-p 00014000 03:02 4559 /lib/ld-2.2.3.so
    40017000-40025000 r-xp 00000000 03:02 4579 /lib/libpthread-0.9.so
    40025000-4002d000 rw-p 0000d000 03:02 4579 /lib/libpthread-0.9.so
    4002d000-40030000 r-xp 00000000 03:02 4567 /lib/libdl-2.2.3.so
    40030000-40031000 rw-p 00002000 03:02 4567 /lib/libdl-2.2.3.so
    40031000-40138000 r-xp 00000000 03:02 4562 /lib/libc-2.2.3.so
    40138000-4013e000 rw-p 00106000 03:02 4562 /lib/libc-2.2.3.so
    40142000-4053c000 r-xp 00000000 00:09 865989 /usr/local/j2sdk1.4.2_01/jre/lib/i386/client/libjvm.so
    4053c000-40558000 rw-p 003f9000 00:09 865989 /usr/local/j2sdk1.4.2_01/jre/lib/i386/client/libjvm.so
    4056a000-4057b000 r-xp 00000000 03:02 4570 /lib/libnsl-2.2.3.so
    4057b000-4057d000 rw-p 00010000 03:02 4570 /lib/libnsl-2.2.3.so
    4057f000-405a0000 r-xp 00000000 03:02 4568 /lib/libm-2.2.3.so
    405a0000-405a1000 rw-p 00020000 03:02 4568 /lib/libm-2.2.3.so
    405a1000-405a9000 r-xp 00000000 00:09 702782 /usr/local/j2sdk1.4.2_01/jre/lib/i386/native_threads/libhpi.so
    405a9000-405aa000 rw-p 00007000 00:09 702782 /usr/local/j2sdk1.4.2_01/jre/lib/i386/native_threads/libhpi.so
    405aa000-405b4000 r-xp 00000000 03:02 4571 /lib/libnss_compat-2.2.3.so
    405b4000-405b6000 rw-p 00009000 03:02 4571 /lib/libnss_compat-2.2.3.so
    405b6000-405ba000 rw-s 00000000 03:02 61954 /tmp/hsperfdata_lina/448
    405ba000-405ca000 r-xp 00000000 00:09 702789 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libverify.so
    405ca000-405cc000 rw-p 0000f000 00:09 702789 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libverify.so
    405cc000-405ec000 r-xp 00000000 00:09 702790 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libjava.so
    405ec000-405ee000 rw-p 0001f000 00:09 702790 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libjava.so
    405ee000-40602000 r-xp 00000000 00:09 702792 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libzip.so
    40602000-40605000 rw-p 00013000 00:09 702792 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libzip.so
    40605000-41f9d000 r--s 00000000 00:09 702849 /usr/local/j2sdk1.4.2_01/jre/lib/rt.jar
    41fe7000-41ffd000 r--s 00000000 00:09 702814 /usr/local/j2sdk1.4.2_01/jre/lib/sunrsasign.jar
    41ffd000-420d8000 r--s 00000000 00:09 702846 /usr/local/j2sdk1.4.2_01/jre/lib/jsse.jar
    420d8000-420e9000 r--s 00000000 00:09 702815 /usr/local/j2sdk1.4.2_01/jre/lib/jce.jar
    420e9000-42642000 r--s 00000000 00:09 702847 /usr/local/j2sdk1.4.2_01/jre/lib/charsets.jar
    446ea000-446ed000 r--s 00000000 00:09 392707 /usr/local/j2sdk1.4.2_01/jre/lib/ext/dnsns.jar
    446ed000-446ef000 r-xp 00000000 00:08 538715 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
    446ef000-446f0000 rw-p 00001000 00:08 538715 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
    4c770000-4c78c000 r--s 00000000 00:09 392706 /usr/local/j2sdk1.4.2_01/jre/lib/ext/sunjce_provider.jar
    4c78c000-4c799000 r--s 00000000 00:09 392709 /usr/local/j2sdk1.4.2_01/jre/lib/ext/ldapsec.jar
    4c799000-4c855000 r--s 00000000 00:09 392770 /usr/local/j2sdk1.4.2_01/jre/lib/ext/localedata.jar
    4c855000-4cb20000 r-xp 00000000 00:09 702800 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libawt.so
    4cb20000-4cb36000 rw-p 002ca000 00:09 702800 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libawt.so
    4cb5b000-4cbae000 r-xp 00000000 00:09 702799 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libmlib_image.so
    4cbae000-4cbaf000 rw-p 00052000 00:09 702799 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libmlib_image.so
    4cbaf000-4cbb5000 r-xp 00000000 00:08 98053 /usr/X11R6/lib/libXp.so.6.2
    4cbb5000-4cbb6000 rw-p 00006000 00:08 98053 /usr/X11R6/lib/libXp.so.6.2
    4cbb6000-4cbfa000 r-xp 00000000 00:08 98182 /usr/X11R6/lib/libXt.so.6.0
    4cbfa000-4cbfd000 rw-p 00044000 00:08 98182 /usr/X11R6/lib/libXt.so.6.0
    4cbfe000-4cc0a000 r-xp 00000000 00:08 98136 /usr/X11R6/lib/libXext.so.6.4
    4cc0a000-4cc0b000 rw-p 0000b000 00:08 98136 /usr/X11R6/lib/libXext.so.6.4
    4cc0b000-4cc0f000 r-xp 00000000 00:08 98057 /usr/X11R6/lib/libXtst.so.6.1
    4cc0f000-4cc10000 rw-p 00003000 00:08 98057 /usr/X11R6/lib/libXtst.so.6.1
    4cc10000-4ccc4000 r-xp 00000000 00:08 98072 /usr/X11R6/lib/libX11.so.6.2
    4ccc4000-4ccc7000 rw-p 000b4000 00:08 98072 /usr/X11R6/lib/libX11.so.6.2
    4ccc7000-4ccce000 r-xp 00000000 00:08 98068 /usr/X11R6/lib/libSM.so.6.0
    4ccce000-4cccf000 rw-p 00007000 00:08 98068 /usr/X11R6/lib/libSM.so.6.0
    4cccf000-4cce2000 r-xp 00000000 00:08 98046 /usr/X11R6/lib/libICE.so.6.3
    4cce2000-4cce3000 rw-p 00012000 00:08 98046 /usr/X11R6/lib/libICE.so.6.3
    4cce5000-4cd9f000 r-xp 00000000 00:09 702803 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libfontmanager.so
    4cd9f000-4cdb9000 rw-p 000b9000 00:09 702803 /usr/local/j2sdk1.4.2_01/jre/lib/i386/libfontmanager.so
    4cdba000-4cdc3000 r-xp 00000000 03:02 4574 /lib/libnss_files-2.2.3.so
    4cdc3000-4cdc4000 rw-p 00008000 03:02 4574 /lib/libnss_files-2.2.3.so
    4cdc4000-4cdc7000 r-xp 00000000 03:02 4573 /lib/libnss_dns-2.2.3.so
    4cdc7000-4cdc8000 rw-p 00002000 03:02 4573 /lib/libnss_dns-2.2.3.so
    4cdc8000-4cdd5000 r-xp 00000000 03:02 4580 /lib/libresolv-2.2.3.so
    4cdd5000-4cdd7000 rw-p 0000c000 03:02 4580 /lib/libresolv-2.2.3.so
    4cdd9000-4cde0000 r-xp 00000000 00:08 98131 /usr/X11R6/lib/libXcursor.so.1.0
    4cde0000-4cde1000 rw-p 00007000 00:08 98131 /usr/X11R6/lib/libXcursor.so.1.0
    4cde1000-4cde7000 r-xp 00000000 00:08 98181 /usr/X11R6/lib/libXrender.so.1.2
    4cde7000-4cde8000 rw-p 00006000 00:08 98181 /usr/X11R6/lib/libXrender.so.1.2
    4cde8000-4ce01000 r-xp 00000000 00:08 538718 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
    4ce01000-4ce03000 rw-p 00019000 00:08 538718 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
    4ce03000-4ce04000 r-xp 00000000 00:0d 3932325 /tcg_2/lina/bosse/ownlib/libjtc.so
    4ce04000-4ce05000 rw-p 00000000 00:0d 3932325 /tcg_2/lina/bosse/ownlib/libjtc.so
    4ce05000-4d0b4000 r-xp 00000000 00:0d 3932330 /tcg_2/lina/bosse/ownlib/libtc.so
    4d0b4000-4d0ee000 rw-p 002ae000 00:0d 3932330 /tcg_2/lina/bosse/ownlib/libtc.so
    4e89e000-4e8a1000 r-xp 00000000 00:0d 3932324 /tcg_2/lina/bosse/ownlib/jtcrut.o
    4e8a1000-4e8a2000 rw-p 00002000 00:0d 3932324 /tcg_2/lina/bosse/ownlib/jtcrut.o
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 349K [0x446f0000, 0x44790000, 0x44bd0000)
    eden space 512K, 57% used [0x446f0000, 0x44739df8, 0x44770000)
    from space 64K, 83% used [0x44770000, 0x4477d620, 0x44780000)
    to space 64K, 0% used [0x44780000, 0x44780000, 0x44790000)
    tenured generation total 1408K, used 873K [0x44bd0000, 0x44d30000, 0x486f0000)
    the space 1408K, 62% used [0x44bd0000, 0x44caa648, 0x44caa800, 0x44d30000)
    compacting perm gen total 5120K, used 4953K [0x486f0000, 0x48bf0000, 0x4c6f0000)
    the space 5120K, 96% used [0x486f0000, 0x48bc6760, 0x48bc6800, 0x48bf0000)
    Local Time = Wed Oct 29 08:09:06 2003
    Elapsed Time = 7
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode)
    # An error report file has been saved as hs_err_pid448.log.
    # Please refer to the file for further information.

    From the docs, here are the two (C vs C++) ways of using JNI, so I think I misled you slightly.
    jdouble Java_pkg_Cls_f__ILjava_lang_String_2 (
         JNIEnv *env,        /* interface pointer */
         jobject obj,        /* "this" pointer */
         jint i,             /* argument #1 */
         jstring s)          /* argument #2 */
         /* Obtain a C-copy of the Java string */
         const char *str = (*env)->GetStringUTFChars(env, s, 0);
         /* process the string */
         /* Now we are done with str */
         (*env)->ReleaseStringUTFChars(env, s, str);
         return ...
    Note that we always manipulate Java objects using the interface pointer env . Using C++, you can write a slightly cleaner version of the code, as shown in Code Example 2-2:
    Code Example 2-2 Implementing a Native Method Using C++
    extern "C" /* specify the C calling convention */ 
    jdouble Java_pkg_Cls_f__ILjava_lang_String_2 (
         JNIEnv *env,        /* interface pointer */
         jobject obj,        /* "this" pointer */
         jint i,             /* argument #1 */
         jstring s)          /* argument #2 */
         const char *str = env->GetStringUTFChars(s, 0);
         env->ReleaseStringUTFChars(s, str);
         return ...

Maybe you are looking for

  • Error - Rendered Image is NULL

    Hello ! I am trying to work on animated objects. I have imported XMII Dynamic Graphics from sdn website and imported the same in my project. Now when I am tyring to use HorizLEDMeter or any of its object I am getting the error as  "Rendered Image is

  • What RAM do I need and where can I get it from?

    Hi all, I know this is probably a simple question, but I just want to make sure I don't mess up my computer! I have an old school DV iMac, and bought the Mac OS X upgrade not too long after it came out (which is rather a while ago now!), but couldn't

  • Gr slip printout

    hi what is meaning of individual slip colective slip individual slip with text in gr printout tell me in layman language

  • SAP PCo 2.1 - Error Retrieving destination systems

    Hi All, I've configured source and destination systems successfully in PCo Mgmt console and created an agent instance. While creating notification under agent instance, I'm getting an error - "Error retrieving destination systems \[key not valid for

  • Estimate form for my window cleaning service

    Hello Thanks in advance for help , I really enjoy being a Mac user , I would like to build website for my window cleaning service . Trying to figure out if I could create a form  where user views pictures of window types and enters number of windows