Help needed calling GetVolumeInformationW, kernel32.dll

Hello,
I'm trying to get the file system of disks using the GetVolumeInformation function. I got it to work using the ANSI version, but now need to use the unicode version. I can't get a sensible response from the unicode version ( I get what look like chinese characters or it crashes). I'm new to c++ and JNI. I've tried variations of (*env).NewString(szFileSystemNameBuffer, strlen(szFileSystemNameBuffer)) and (*env).NewStringUTF(szFileSystemNameBuffer) but no joy. The closest I've come is when I got back "N" from the call, thought this may have been the start of "NTFS" and I didn't have enough space for the rest.
JNIEXPORT jstring JNICALL Java_com_nortel_cc_dsf_utils_systeminfo_JniConfigDetail_getFileSystem(JNIEnv *env, jclass obj, jchar path) {
      CHAR szDrive[4];
      szDrive[0] = path;
      szDrive[1] = ':';
      szDrive[2] = '\\';
      szDrive[3] = '\0';
      CHAR szVolumeNameBuffer[12]; //this will have the name of your drive
      DWORD dwVolumeSerialNumber; //this will have the serial number of your drive
      DWORD dwMaximumComponentLength; //this is the max length in between each \ in a path
      DWORD dwFileSystemFlags; //this will return flags about the drive's file system
      CHAR szFileSystemNameBuffer[10]; //this will contain the type of file system (ex: NTFS)
      //make call to kernell32.dll
      BOOL result = GetVolumeInformationW((LPCWSTR)szDrive, (LPWSTR)szVolumeNameBuffer, 12, &dwVolumeSerialNumber, &dwMaximumComponentLength, &dwFileSystemFlags, (LPWSTR)szFileSystemNameBuffer, 10);
return env->NewString((jchar *)szFileSystemNameBuffer, strlen(szFileSystemNameBuffer));Can anyone shed any light on what I need to do to get back the file system?
Thanks
Tom

Here's what I have in the function.
JNIEXPORT jstring JNICALL Java_JniConfigDetail_getFileSystem(JNIEnv *env, jclass obj, jchar path) {
      WCHAR szDrive[4];
      szDrive[0] = path;
      szDrive[1] = ':';
      szDrive[2] = '\\';
      szDrive[3] = '\0';
      CHAR szVolumeNameBuffer[10]; //this will have the name of your drive
      DWORD dwVolumeSerialNumber; //this will have the serial number of your drive
      DWORD dwMaximumComponentLength; //this is the max length in between each \ in a path
      DWORD dwFileSystemFlags; //this will return flags about the drive's file system
      WCHAR szFileSystemNameBuffer[12]; //this will contain the type of file system (ex: NTFS)
      //make call to kernell32.dll
      BOOL result = GetVolumeInformationW((LPCWSTR)szDrive, (LPWSTR)szVolumeNameBuffer, 12, &dwVolumeSerialNumber, &dwMaximumComponentLength, &dwFileSystemFlags, (LPWSTR)szFileSystemNameBuffer, 10);
      if (result) {
           if (szFileSystemNameBuffer[0] == 'N' &&
               szFileSystemNameBuffer[1] == 'T' &&
               szFileSystemNameBuffer[2] == 'F' &&
               szFileSystemNameBuffer[3] == 'S') {
               return (*env).NewString(szFileSystemNameBuffer, strlen(szFileSystemNameBuffer));
      return (*env).NewStringUTF("null");
}And here are the errors the above function causes.
Errors:
1>ConfigDetail.cpp
1>..\..\ConfigDetail\ConfigDetail\ConfigDetail.cpp(61) : error C2664: 'strlen' : cannot convert parameter 1 from 'WCHAR [12]' to 'const char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\ConfigDetail\ConfigDetail\ConfigDetail.cpp(61) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'WCHAR [12]' to 'const jchar *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
After looking more closely at the errors, I tried the reinterpret cast like so.
return (*env).NewString(reinterpret_cast <const jchar*>(szFileSystemNameBuffer), strlen(reinterpret_cast <const char*>(szFileSystemNameBuffer)));This returns me "N" only. So the question remains how do I get the full "NTFS" which we now know is being returned.

Similar Messages

  • Help needed- Caller tone application using JTAPI and JMF

    Hi to All,
    I want to make a Caller Tone Application for Cisco IP phone.
    For that application I am using JTAPI and JMF.
    I am new to this two technologies.
    Can somebody help me for how to accomplish this?
    ---Ashish

    Hi Jerry,
    You can run analog input and counter tasks concurrently.  You can start them using software timing basically at the same time which may be fine for your needs and is the easiest to implement.  You also can use a hardware start trigger to start the tasks if you prefer.  It all depends on the level of synchronization you need. 
    You have not mentioned at what rate you will be acquiring data on your analog inputs.  The M Series PCI-6225 has 80 analog inputs and may suit your needs.  You will need to know what sampling rate you are trying to achieve.  Any M Series device will definitely give you the best value. 
    Hope this helps!
    Laura

  • Help needed in calling an Activex

    Hi All,
    I need a help in calling an Activex from adobe PDF forms. I have created Adobe PDF form using Adobe Acrobat 9 Pro. On click of a button i need to call activex written in C sharp using java script. When i run the pdf and click on that button it is throwing back an error saying "ActiveXObject is not defined".
    Below is part of code calling activex.
    var x = new ActiveXObject("Application.MatchScanner");
    Any help will highly appreciated

    Thanks for immediate response.
    So how can i make a call to a dll from my pdf forms

  • Help needed! Just want to cancel my year subscription. No answer from support via mail, noone answers when I call, support chat don't work.

    Help needed! Just want to cancel my year subscription. No answer from support via mail, noone answers when I call, support chat don't work.

    Hi there
    I'll pass your details to our Russian team and they'll contact you to assist further.
    Kind regards
    Bev

  • I need help w/ This: missing gina dll after installation...

    I need help w/ This: missing gina dll after installation of linksys adaptor on Win XP.
    Thank you

    I assume you are facing this error on wireless USB adapter ... WUSB54GC .... uninstall the adapter from all programs >> unplug & replug the adapter >> Install the drivers using found new hardware >>
    Once installed use windows wireless configuration to connect to the wireless network .....
    See if it works .....

  • Application with a vi calling a function from kernel32.dll

    I have a Labview application which runs very well.
    I had add a vi using the functio GetSystemTime from the dll kernel32.dll. The vi calling the API function runs well. Then I tried to buil the application and it does'nt run anymore . A dialog box is opened : "access to a forbidden space memory. I don't understand.
    Does anyone have an idea?
    Thank you for your response.

    I have made at test with this function but it runs on my system.
    I have used LV 6.0.2 to LV 7.0 on a Win XP Prof. You can compare your solution with mine.
    The VI will run once when the application is called. You will see current time.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    GetSystemTime.zip ‏23 KB

  • Installer for KERNEL32.dll. needs to be reinstall

    how do i reinstall this

    Hi,
    You can extract a new copy of the Kernel32.dll file from your original Windows disks or CD-ROM.
    For more detailed information, please see:
    Error Loading Kernel. You Must Reinstall Windows
    http://support.microsoft.com/kb/146419/en-us
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Adobe Premire Elements 13 purchase wouldn't download. No support no help no phone mnubers. Found a number and was on hold for over 25 minutes. need help need a number to call.

    Adobe Premire Elements 13 purchase wouldn't download. No support no help no phone mnubers. Found a number and was on hold for over 25 minutes. need help need a number to call.

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5 | 1
    Contribute:  CS5 | CS4, CS3 | 3,2
    FrameMaker:  12, 11, 10, 9, 8, 7.2
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Help me :calling c dll for get cluster data

    I have read the .d7d data files with the DWDataReaderLib.dll in labview,i can get the data and time_stamp through allocate memory (data and time_stamp) then call DWGetScaledSamples ,but when i want to allocate the DWChannel structures then call DWGetChannelList to get channel list properties,it will fail .In fact,now i don't konw how to get channel list .In my program,i have allocate the DWChannel structures ,but it doesn't export the data ,and when i wire the array of channel list,the labview will destroy.thanks
    Attachments:
    read DWdata.zip ‏870 KB

    duplicated post: http://forums.ni.com/t5/LabVIEW/Help-me-Calling-C-dll-to-get-cluster-data/td-p/1556722

  • LabVIEW built DLL's in a multi-threaded C++ app, Help Needed!

    I'm working on a software application that is being developed
    primarily in C++. There is a component of this larger application,
    however, that is being developed in LabVIEW (for several reasons that
    I won't dive into here). This LabVIEW code is therefore executed
    within a C++ wrapper class that calls a LabVIEW built DLL.
    All this was fine and dandy, untill we decided to multi-thread our C++
    application. As a result, the LabVIEW DLL now gets called from
    multiple threads simultaneously. From all of my testing, it appears
    that resource locking is occuring such that only one thread has access
    to the .dll at a time. If I make the .vi used to define the dll
    function prototype as non-reentrant then this is what we see. As an
    example, say we have 3 threads all calling the same .dll method call.
    Thread 1, 2, and 3 all call the .dll within a few milliseconds of each
    other. Thread 1 completes the .dll call after X milliseconds. Thread 2
    completes the .dll call after 2X milliseconds, and thread 3 completes
    after 3x milliseconds.
    Now, changing the vi to reentrant, and running the same test, we see
    Thread 1, 2, and 3 all complete the .dll call in 3x milliseconds.
    While the fact that they now take the same amount of time to complete
    would lead you to believe they are happening in parallel, the fact
    that it takes 3x milliseconds as opposed to X milliseconds means they
    are not.
    Has anyone ever dealt with these issues before? Is it possible that
    messing with the "execution system" for the vi will have an affect?
    What if different .dll methods but still attached to the same .dll are
    called from different threads? Same behavior? Is it a lost cause? Is
    there no way to make code within a single LabVIEW built .dll run in
    two different threads at the same? From what I understand this is
    easily doable with a normal (non-LV built) .dll.
    Please, if anyone has any advice in this area, let me know!!!
    Much appreciated,
    Jesse Hurdus

    Duplicate post.

  • Help needed ,,, server crashing

    Hi
    I am facing one problem in Weblogic server, when I am trying to view on page. We have a requirement where we need to add some fields on the JSP page all the fields are input fields where user provided values in textboxes and radio buttons. We are saving these values in session. And we have XML where the values are getting stored as well , we have XML beans defined.
    Now to the existing page when I am trying to add a text field which takes the value and stores it (the below code describes it better) , my server crashes.
    <tr>
    <td> <a>Yatin Mehta's email</a></td>
    <td> <netui:textBox dataSource="{actionForm.ABCDocument.ABC.yatinemail}" tagId="yatinemail" size="20" maxlength="25"></netui:textBox>
    </td>
    </tr>
    I am not sure why this is happening . I have taken care that required code is added in all the other files like java scripts and controller. We are doing similar kind of operation in that JSP many times but when I add an extra entry as mentioned in above code, server crashes.
    One more confusing part is when I tried by replacing one already existing field in JSP with this code which I have written above. I am getting the required field on page and it is behaving the way I want. This means JSP is not taking any extra field, if I have to add one I will have to remove one which is present.
    Kindly have a look at the attached screenshot for error which is displayed when the server crashes.
    The Weblogic version I am using is Version 8.1.5 (Build: 2005.0921.200442) and the domain is Basic WebLogic Workshop Domain.
    The Java version is :
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    I would really appreciate your help, if you could give me some suggestions on this. Kindly let us know if you need some more information.
    Unexpected Signal : EXCEPTION_PRIV_INSTRUCTION (0xc0000096) occurred at PC=0xA824B1
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    Dynamic libraries:
    0x00400000 - 0x0040B000      C:\bea\JDK142~1\bin\java.exe
    0x7C900000 - 0x7C9B0000      C:\WINDOWS\system32\ntdll.dll
    0x7C800000 - 0x7C8F4000      C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E6B000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77E70000 - 0x77F01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C68000      C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08138000      C:\bea\JDK142~1\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DD0000      C:\WINDOWS\system32\USER32.dll
    0x77F10000 - 0x77F57000      C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6D000      C:\WINDOWS\system32\WINMM.dll
    0x10000000 - 0x10007000      C:\bea\JDK142~1\jre\bin\hpi.dll
    0x00390000 - 0x0039E000      C:\bea\JDK142~1\jre\bin\verify.dll
    0x003B0000 - 0x003C9000      C:\bea\JDK142~1\jre\bin\java.dll
    0x003D0000 - 0x003DE000      C:\bea\JDK142~1\jre\bin\zip.dll
    0x003E0000 - 0x003FC000      C:\bea\JDK142~1\jre\bin\jdwp.dll
    0x00970000 - 0x00975000      C:\bea\JDK142~1\jre\bin\dt_socket.dll
    0x71AB0000 - 0x71AC7000      C:\WINDOWS\system32\ws2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71A50000 - 0x71A8F000      C:\WINDOWS\system32\mswsock.dll
    0x662B0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71A90000 - 0x71A98000      C:\WINDOWS\System32\wshtcpip.dll
    0x07070000 - 0x0707F000      C:\bea\jdk142_08\jre\bin\net.dll
    0x76F20000 - 0x76F47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76FB0000 - 0x76FB8000      C:\WINDOWS\System32\winrnr.dll
    0x76F60000 - 0x76F8C000      C:\WINDOWS\system32\WLDAP32.dll
    0x76FC0000 - 0x76FC6000      C:\WINDOWS\system32\rasadhlp.dll
    0x07190000 - 0x07198000      C:\bea\jdk142_08\jre\bin\nio.dll
    0x07CB0000 - 0x07CB6000      C:\bea\jdk142_08\jre\bin\ioser12.dll
    0x07E00000 - 0x07E05000      C:\bea\weblogic81\server\bin\stackdump.dll
    0x07E10000 - 0x07E15000      C:\bea\weblogic81\server\bin\wlntio.dll
    0x76C90000 - 0x76CB8000      C:\WINDOWS\system32\imagehlp.dll
    0x59A60000 - 0x59B01000      C:\WINDOWS\system32\DBGHELP.dll
    0x77C00000 - 0x77C08000      C:\WINDOWS\system32\VERSION.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 18176K, used 10096K [0x10010000, 0x113c0000, 0x113c0000)
    eden space 16192K, 50% used [0x10010000, 0x1081f958, 0x10fe0000)
    from space 1984K, 92% used [0x111d0000, 0x1139c6d8, 0x113c0000)
    to space 1984K, 0% used [0x10fe0000, 0x10fe0000, 0x111d0000)
    tenured generation total 241984K, used 102032K [0x113c0000, 0x20010000, 0x20010000)
    the space 241984K, 42% used [0x113c0000, 0x177641f8, 0x17764200, 0x20010000)
    compacting perm gen total 46592K, used 46582K [0x20010000, 0x22d90000, 0x28010000)
    the space 46592K, 99% used [0x20010000, 0x22d8d9c8, 0x22d8da00, 0x22d90000)
    Local Time = Thu Apr 05 17:32:32 2007
    Elapsed Time = 467
    # HotSpot Virtual Machine Error : EXCEPTION_PRIV_INSTRUCTION
    # Error ID : 4F530E43505002EF
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
    #

    hi
    do you have any custom NSAPI (native) plugins setup with your server ? when this crash happens, can you also provide the last few lines of the server log error file (logs/error).
    this is most probably happening because you do not have enough memory configured for your native app .
    can you also provide (if any) custom jvm options that your admin have setup in your server configuration file (https-hostname/config/server.xml)

  • Windows vista kernel32.dll

    I need some help, trying to install skype it gives me a fatal error that says: Failed to get proc address for GetLogicalProcessorInformation (kernel.dll).I was wondering if there was any way to fix it and for those saying "get a better pc" i would but money is tight.

    You need to update your Windows XP to the latest Service Pack 3 (SP3).
    https://support.skype.com/en/faq/FA12388/why-am-i-getting-a-fatal-error-kernel32-dll-when-i-try-to-l...
    http://www.microsoft.com/en-us/download/details.aspx?id=24

  • How can i avoid a pop-up window when calling the avi.dll?

    Ok, here another try!
    My problem is as followed:
    My program calls the avi.dll to initialize, write into and close an
    avi-file.
    Now, when initializing it, a pop-up window is shown so you can choose the
    codec to use.
    My question is, can I pre-define the codec, so the pop-up window won't show
    up?
    The program is meant to write several files, some starting without the user
    having to control them, so the pop-up window really isn't helping.
    Any ideas?
    I attached the avi.dll in case you need it to look at the problem.
    Also helpful would be, if someone could tell me, how I can take a closer
    look at the structure of the dll. Is there a program I can do that with?
    Thanx!
    regar
    ds,
    Martin

    Hello Martin,
    I have used this DLL before and wasn't asked to choose a codec. Maybe if you use all three functions (init, write, close), it works without problems. Here's a example that uses IMAQ hardware to acquire an 8-bit image at 30fps and writes each image to an avi file.
    There are utilities to examine dlls (see what functions are exported and what the dependencies are, but you can't see source code since it is compiles.) Check out QuickView or DependencyWalker.
    Attachments:
    avigrab.zip ‏66 KB

  • Calling existing C++ dll from native code causes an ACCESS_VIOLATION

    Hi everyone,
    I'm having issues creating a Java app to call an existing c++ DLL. I've done extensive searching for a solution and found lots of goodies, but nothing to fix my problem yet.
    I've gone through the JNI tutorial and created my java class, used javah, and created my native code according to the tutorial.
    I'm new to dealing with DLLs so I'm not sure if there are some steps that I'm not taking.
    The issue comes when I run the program. I get an EXCEPTION_ACCESS_VIOLATION.
    the DLL I'm trying to call makes a call to a device on the USB port. I also have the source code and header files for the DLL but thought it would be easier to just have to deal with the already built DLL.
    After putting some print statements in the native function, the violation comes when I try to call the function in the external DLL. The DLL itself loads correctly (as far as I know).
    Here my native method that will load the external dll. I got the code to call the DLL method from:
    http://goff.nu/techarticles/development/cpp/calldll.html
    JNIEXPORT void JNICALL
    Java_OCPMControl_OCPMSetPixelCount (JNIEnv *env, jobject obj, jint pixelCount)
    //load the dll
    HINSTANCE ocpmSerialDLL = LoadLibrary("OCPMSerialDLL");
    /* get pointer to the function in the dll*/
    FARPROC myDLLFunction = GetProcAddress(HMODULE(ocpmSerialDLL), "OCPMSetPixelCount");
    /* Define the Function in the DLL for reuse. This is just prototyping
    * the dll's function. A mock of it. Use "stdcall" for maximum compatibility.
    typedef void (__stdcall * FUNC)(enum ePixelNum);
    FUNC MyFunction;
    MyFunction = FUNC(myDLLFunction);
    printf("Calling function\n");
    /* The actual call to the function contained in the dll */
    MyFunction(PIXEL256);
    /* Release the Dll */
    FreeLibrary(ocpmSerialDLL);
    When I run the program, I get the following error:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x182
    91E6B
    Function=[Unknown.]
    Library=C:\sun\MyJava\ocpm\src\OCPMSerialDLL.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    at OCPMControl.OCPMSetPixelCount(Native Method)
    at OCPMControl.getData(OCPMControl.java:167)
    at OCPMService.main(OCPMService.java:46)
    Dynamic libraries:
    0x00400000 - 0x00406000 c:\sun\j2sdk1.4.2_03\bin\java.exe
    0x77F80000 - 0x77FFD000 C:\WINNT\system32\ntdll.dll
    0x7C2D0000 - 0x7C332000 C:\WINNT\system32\ADVAPI32.dll
    0x7C570000 - 0x7C628000 C:\WINNT\system32\KERNEL32.DLL
    0x77D30000 - 0x77DA1000 C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll
    0x08000000 - 0x08138000 c:\sun\j2sdk1.4.2_03\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E75000 C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7E000 C:\WINNT\system32\GDI32.DLL
    0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll
    0x10000000 - 0x10007000 c:\sun\j2sdk1.4.2_03\jre\bin\hpi.dll
    0x007C0000 - 0x007CE000 c:\sun\j2sdk1.4.2_03\jre\bin\verify.dll
    0x007D0000 - 0x007E9000 c:\sun\j2sdk1.4.2_03\jre\bin\java.dll
    0x007F0000 - 0x007FD000 c:\sun\j2sdk1.4.2_03\jre\bin\zip.dll
    0x18270000 - 0x1827E000 C:\sun\MyJava\ocpm\src\OCPMNative.dll
    0x18290000 - 0x182AA000 C:\sun\MyJava\ocpm\src\OCPMSerialDLL.dll
    0x68120000 - 0x681A1000 C:\sun\MyJava\ocpm\src\instrsup.dll
    0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
    0x70A70000 - 0x70AD5000 C:\WINNT\system32\SHLWAPI.DLL
    0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.DLL
    0x782F0000 - 0x78538000 C:\WINNT\system32\SHELL32.DLL
    0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000 C:\WINNT\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 140K [0x10010000, 0x100b0000, 0x104f0000)
    eden space 512K, 27% used [0x10010000, 0x10033368, 0x10090000)
    from space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
    to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
    tenured generation total 1408K, used 0K [0x104f0000, 0x10650000, 0x14010000)
    the space 1408K, 0% used [0x104f0000, 0x104f0000, 0x104f0200, 0x10650000)
    compacting perm gen total 4096K, used 1012K [0x14010000, 0x14410000, 0x1801000
    0)
    the space 4096K, 24% used [0x14010000, 0x1410d1f0, 0x1410d200, 0x14410000)
    Local Time = Wed May 12 10:53:56 2004
    Elapsed Time = 10
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode)
    # An error report file has been saved as hs_err_pid2120.log.
    # Please refer to the file for further information.
    Is there something else I have to do to tell the JVM that the external DLL call isn't an Access Violation?
    Would it be easier to use the source files instead?
    Thanks to anyone who can help me out here!
    Scott Campbell

    Thanks,
    The problem has been solved. I wasn't linking the dll properly to access the external DLL and thus, my native DLL was looking for methods that it didn't know how to find. which was easily solved by adding a few options when creating my native dll.
    Here is the link I found to solve the problem incase anyone else has issues like this. It is regarding implicit v.s. explicit linking to external DLLs in using visual C++.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_link_an_executable_to_a_dll.asp
    Scott.

  • Can a call to a DLL be aborted?

    Hi all,
    I've got a rather huge project stat starts to cause bad problems now communicating with an USB device. There's a home-made DLL that calls some chip-specific DLL functions. From time to time a call that finally should simply close the handle to that device takes far too long, from seconds to hours. It will finally return and everything is done, but I cant affort to wait more than some few seconds.
    Now my Q is, is there any way to abort a call to that DLL whenever it takes more than a specified period? I thought of dynamically call a VI that calls the DLL, but I am not sure if this would really help, as LV is really lazy when it hangs in the DLL call _now_! The system monitor shows no CPU usage (~1%) and does not show LV hanging, but LV does react to any clicks with long delayes, if at all. Would not like to set that up just to find out that it could not have worked.
    Any C programme here that has an idea to change the home-made dll?
    Greetings from Germany!
    Uwe

    After re-thinking the whole thing, I conclude this is impossibel, at least in the way I asked for.
    To abort a process, it must be a separate process. As LabVIEW itself is a single process, I would have to bring this DLL-stuff into another process, which could just be another LV runtime engine. This might work in the devellopment system, but no way when compiling the main app into an exe itself. OR I had to use an older runtime engine.
    AND, I would need to create a LabVIEW daemon that accepts the jobs with the DLL as it needs to stay in memory when being active.
    AND I'd need a whole bunch of communication between both processes, exchanging different data like handles, errors, commands and communication packets.
    Conclusion: I will not try going this way unless someone proofs me wrong.
    Greetings from Germany!
    Uwe

Maybe you are looking for

  • SSRS 2012 compatibility with Oracle 11g

    Hello, I have a client that is asking us to implement SSRS 2012 to report on our data warehouse.  We currently support Oracle 11g in our DW. We have tried to connect to 11G using a trial version but have failed in all attempts.  In looking at the Mic

  • A structure with mutiple data types or array of array

    I want to read some soft of a table from a text file and want to store in a structure (not in database) for future use. I want the structure to have rows and columns when I need to reach. Colums should store multiple data types (int and/or string). I

  • Paramater Criteria not selecting correct data

    Why oh why would disco do this I have a field configured in the EUL to a format mask of "Mon" it shows a truncated date field with Jan, Feb, Mar etc... When I put selection criteria on the field to only display JAN it brings back the columns with Jan

  • Shedules_line in bapi_salesorder_change

    Hi Gurus, How we should use BAPI_SALESORDER_CHANGE if we want to change the material quantity and we have more than one schedule line.Which line of schedules we should update if they are more than one ? Regards, Stefan

  • Detecting non-standard ftp usage (!= tcp 21) using IDSM2 5.0 & CN-MARS v3.4

    Hello, We recently installed our IDSMs and a MARS box to monitor our core traffic. I'm trying to set up a MARS "User Inspection Rule" to notify me when there is FTP traffic on a port other than port 21. Is there an easy way to do this? I don't see an