Too many resources used under Linux

I have tested sun jvm under linux red-dat 6.2
and 7.1 (listed by Sun as official platform supported)
The JVM I test was from 1.3.0 to the 1.4.1
I have written a simple application server that
runs java application starting a new JVM.
When the java application runs (with the -server or
-hotspot option) I see that 10 java process are
istantiated. (10 JVM)
This is a real problem because for 4 users that runs 4
applications there are 40 JVM running
(each one allocates about 20 Mb of memory)
and the system became very slow.
With the -classic option the situation is better: only 1 JVM
for application is started, (the application is the same, I
have change only the -server option with -classic)
but JVM seems to be less stable: I have a lot of segmentation
fault errors. (with core dump)
With the new distribution of Sun JVM (1.4.1) the -classic option
is no longer supported.
Does anyone knows if is there a way to have only one JVM
for application? (-classic does not works well)
Is there others JVM for linux more stable instead of the Sun one?
PS: I have tested the same code under win/2000 using JVM 1.3.1_03
and the -classic option. All goes well (the same application):
I haver only 1 thread for application without jvm runtime error.
Now my doubt is: does Sun belive in the Linux Word?
JVM for Windows is much more stable!!!
Thank you in advanced and best regards.

I am assuming that you believe that there are 10 processes because that is what ps shows. However on Linux, each thread in a java program shows up in ps as a separate process. The memory for each "ps process" corresponding to a java thread is shared among all the threads of the JVM. Therefore if you see 10 processes with 20MB each you are not using 200MB, just 20.
If you are running 4 JVMs then you would be using 40MB not 800 as shown in ps.
I think Sun's JVM for linux is quite good (as I use it every day). If you need to run so many JVMs you should invest in more memory.
BTW, How much memory is installed in your system?

Similar Messages

  • Mdworker: (Normal) Import: Using too many resources after 64 files

    Spotlight Eternaly indexing no matter what I do. I've deleted indexes, stopped and started mdutil. Everything to no avail.
    Mar  1 08:03:16 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:03:21 server mdworker[43987]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 140065 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/28K/x00_28975.olk14Message, exiting to clean up now.
    Mar  1 08:03:26 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:03:31 server mdworker[43991]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 140065 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/31K/x00_31281.olk14Message, exiting to clean up now.
    Mar  1 08:03:36 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:03:41 server mdworker[43993]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 140065 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/32K, exiting to clean up now.
    Mar  1 08:03:46 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:03:51 server mdworker[43994]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 140065 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/32K/x00_32815.olk14Message, exiting to clean up now.
    Mar  1 08:03:56 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:01 server mdworker[44032]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 142049 swapped: 2 regions: 451), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/33K/x00_33570.olk14Message, exiting to clean up now.
    Mar  1 08:04:06 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:12 server mdworker[44034]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 142044 swapped: 2 regions: 448), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/34K/x00_34279.olk14Message, exiting to clean up now.
    Mar  1 08:04:17 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:22 server mdworker[44035]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 142046 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/35K/x00_35086.olk14Message, exiting to clean up now.
    Mar  1 08:04:27 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:32 server mdworker[44039]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 142013 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/36K/x00_36629.olk14Message, exiting to clean up now.
    Mar  1 08:04:37 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:42 server mdworker[44047]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 177956 swapped: 2 regions: 660), hit usage threshold importing /Users/user/Downloads/2011-11-14.pdf, exiting to clean up now.
    Mar  1 08:04:47 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:53 server mdworker[44048]: Unexpected EOF, returning last token as fallback
    Mar  1 08:04:53 server mdworker[44048]: Invalid char
    do I Need to reinstall Lion? I am losing my mind trying to fix this.

    mdworker is part of Spotlight indexing.  Spotlight as in Commnad-Space or the magnifying glass in the upper right corner of your menu bar.
    You can control Spotlight via System Preferences -> Spotlight
    Message was edited by: BobHarris

  • "java.io.IOException: Too many open files"  in LinuX

    Hi Developers,
    * I am continiously running and processing more than 2000 XML files by using SAX and DOM.....
    * My process is as follows,
    - Converting the XML file as Document object by DOM....
    - And that DOM will be used while creating log file report, that log file will be created after executing all XML files..
    * After processing approx 1000 files, it throws *"java.io.IOException: Too many open files" in LinuX system* ....
    * I have googled more and more in all sites including sun forum also, but they are telling only to increase the system config by ULIMIT in linux....If i increase that its executing well without exception........
    * My question is, Is it possible to do it by JAVA code itself or any other VM arguments like -Xms512m and -Xmx512m.....
    * Please let me know , if you have any idea.....
    Thanks And Regards,
    JavaImran

    Doh! I forgot to post my little code sample...
    package forums.crap;
    import java.io.*;
    import java.util.*;
    public class TooManyFileHandles
      private static final int HOW_MANY = 8*1024;
      public static void main(String[] args) {
        List<PrintWriter> writers = new ArrayList<PrintWriter>(HOW_MANY);
        try {
          try {
            for (int i=1; i<=HOW_MANY; i++ ) {
              writers.add(new PrintWriter("file"+i+".txt"));
          } finally {
            for (PrintWriter w : writers) {
              if(w!=null)w.close();
        } catch (Exception e) {
          e.printStackTrace();
    }... and the problem still isn't OOME ;-)
    Cheers. Keith.

  • Too many resources error

    When I tried to open my iPad a message flashed on the screen which said something about "too many resources".  I didn't have time to read the entire message before the machine shut down.  I haven't been able to open it since.  I assume I need to delete some things but how do I do this when it won't stay on.

    Do you have a back up? PUt your ipad in recovery mode By pressing the power button and home key simultenously until you see connect to itunes. Do this while your ipad is connected to your computer. Once itunes detected your device, it will ask you if you want to restore the ipad and follow the instruction on your screen

  • Java.util.zip.ZipException: Too many open files on Linux

    Hi,
    We have web application running on Caucho's resin server on jdk 1.5.0_11 and Red hat Linux. We are noticing that java process is running out of file handles within 24-30 hours. We have file limit of 5000 which it consumes in 24 hours throwing 'java.util.zip.ZipException: Too many open files'.
    I have made sure all sorts of file handles are closed from application point of view. Here is the snapshot of lsof (list of file handles) from java process. The following list keeps growing until it runs out of limit. Do you have tips/suggestions on how to mitigate this problem (considering we dont want to increase ulimit for this process)? Also, can you make out any thing more from the description of file handles like, are they unclosed POP3 connections or URL connection to external sites?
    java 7156 resin 120u IPv4 34930051 UDP localhost.localdomain:59693
    java 7156 resin 121u IPv4 34927823 UDP localhost.localdomain:59663
    java 7156 resin 122u IPv4 34931861 UDP localhost.localdomain:59739
    java 7156 resin 123u IPv4 34932023 UDP localhost.localdomain:59745
    java 7156 resin 124u IPv4 34930054 UDP localhost.localdomain:59700
    java 7156 resin 125u IPv4 34927826 UDP localhost.localdomain:59665
    java 7156 resin 126u IPv4 34927829 UDP localhost.localdomain:59666
    java 7156 resin 127u IPv4 34930057 UDP localhost.localdomain:59703
    java 7156 resin 128u IPv4 34930713 UDP localhost.localdomain:59727
    java 7156 resin 129u IPv4 34930716 UDP localhost.localdomain:59730
    java 7156 resin 130u IPv4 34932238 UDP localhost.localdomain:59789
    java 7156 resin 131u IPv4 34932026 UDP localhost.localdomain:59749
    java 7156 resin 132u IPv4 34932221 UDP localhost.localdomain:59770
    java 7156 resin 133u IPv4 34932224 UDP localhost.localdomain:59775
    java 7156 resin 134u IPv4 34932029 UDP localhost.localdomain:59753
    java 7156 resin 135u IPv4 34932032 UDP localhost.localdomain:59754
    java 7156 resin 138u IPv4 34932035 UDP localhost.localdomain:59760
    java 7156 resin 139u IPv4 34932038 UDP localhost.localdomain:59763
    java 7156 resin 140u IPv4 34932227 UDP localhost.localdomain:59780
    java 7156 resin 141u IPv4 34932230 UDP localhost.localdomain:59781
    java 7156 resin 144u IPv4 34932234 UDP localhost.localdomain:59786
    java 7156 resin 146u IPv4 34932241 UDP localhost.localdomain:59792
    java 7156 resin 147u IPv4 34932247 UDP localhost.localdomain:59802

    Finally we resolved this issue. It was oracle driver which had some compatibility issue, we upgraded our Oracle client driver to newer version, and this fixed the problem. Base line, there was nothing wrong with application code, code was doing good resource clean up, but oracle driver was leaking handles per every connection.

  • Too many computers using the product?

    I have Adobe Photoshop elements on two computers. I just had a msg come up that said I have the software installed on too many computers. It has only been on the two. No recent installations either. I need help here or I am going to loose it in 30 days. Why is adobe so hard to get a hold of?

    I am guessing here that multiple computers refers to more than the number of computers that you have the license for. See this document for more info: http://kb2.adobe.com/cps/100/1008779.html

  • New Computer, but Adobe is telling me too many are using the program

    My PC went down last week and I've re installed Master Collection. Adobe is indicating that I now have the program on too many computers. I've searched, but haven't found a way to deactivate my old computer? Any ideas?

    Contact support by web chat to reset activations.
    Mylenium

  • Too much resources use by the iOS6.0.1. How can I downgrade ?

    Good evening,
    I have an Ipod 4 touch. I use Amplitube to simulate amps with my guitar. With Ios5 I had no problem but since upgrade on Ios6 Apps close suddenly. Reason : not enough ram memory.
    How can I fix this ?

    All I can say in this Apple forum is that downgrading the IOS is not supported by Apple.
    For your problems:
    See:
    iOS: Troubleshooting applications purchased from the App Store
    Restore from backup. See:
    iOS: How to back up
    Restore to factory settings/new iPod

  • ActiveProject.Resources return too many resources in macros

    Hello everybody.
    I've got very annoyed issue.
    I'm coding some macros which should add budget resources to project summary task automatically.
    If I open single project window, I haven't got issue.
    But when I open two different projects with different resources in different windows construct
    ActiveProject.Resources
    return resources from both openned projects together.
    How I can distribute resources from different projects and why they return together?

    Hello,
    Are you opening these two projects from project server? if yes, Could you uncheck "Load Resource Summary Assignments" check box you get on login prompt while opening Project Professional and check the issue behavior.
    When we have this checkbox selected the resources from both the plans will be visible in resource sheet.
    Hope this helps.
    Thank you,
    Kiran K.

  • Too many resources message

    I have the iPhone 4, ever since the iOS 6 update its been lagging a little and I keep gettig the following message: "your device is running low on resources. Please close any currently running apps that you don't need and try again". But when I check my open apps I only have 2-3 open and running still. How do I fix this? I have a 32gig and should have plenty of space, unless the iOS 6 took up a lot of it.

    Are you locking the software tracks? Then may help.
    I don't think a Windows partition will hurt performance UNLESS it seriously reduces the amount of free space on your hard drive. As long as you leave enough free space on your Mac partition (at least 10% of the drive) for virtual memory, I think you'll be okay.

  • ORA-31186 Document contains too many nodes - Using XMLGen with XSLT

    When processing a query that returns a large number of rows I'm getting this error. It doesn't appear that processing results with a style sheet works for larger result sets, in this case 64k rows.

    Hi,
    you may want to check
    ORA-24817 and ORA-31186 (undocumented errors)
    Regards,
    Jaromir

  • Using JCOP tools under Linux

    Hello.
    I looked through the older web sites of IBM regarding the usage of JCOP tools under Linux.
    I am interested in following questions:
    1. Is there any separate distributon version of JCOP tools for Linux?
    2. Can sample JCOP tools 3.1.2 plugin (for Windows) be used under Linux. What has to be modified? Also what additional tools have to be installed an used for communication with real cards through PC/SC readers.
    3. Is JCOP simulation option available under Linux?
    I'll appreciate any help.
    Best regards,
    newbie

    newbie2007 wrote:Hello.
    I looked through the older web sites of IBM regarding the usage of JCOP tools under Linux.
    I am interested in following questions:
    1. Is there any separate distributon version of JCOP tools for Linux?
    2. Can sample JCOP tools 3.1.2 plugin (for Windows) be used under Linux. What has to be modified? Also what additional tools have to be installed an used for communication with real cards through PC/SC readers.
    3. Is JCOP simulation option available under Linux?
    I'll appreciate any help.
    Best regards,
    newbieEverything should work, except for the target pack and the non-existent Linux Pegoda driver.1. The is no seperate Linux distribution. You just need a Linux distribution for Eclipse.JCOP Tools plugin should work under Linux, except for the target pack and the non-existent Pegoda driver for Linux.1. There is no seperate Linux distribution. You just need the Linux distribution for Eclipse.
    2. Prior to JCOP Tools 3.1.2 the last time something was mentioned about Linux was in the release notes of 3.1.1b . In version 3.2.0 IBM added a linux_support page to the JCOP Tools user guide (see release notes and linux_support page below).
    3. There shouldn't be any problems with the generic simulation. The target pack runs only with Windows though.
    h1. Release Notes
    h2. Version
    JCOP Tools 3.1.1.b (B&auml;rlach)
    h2. What's new?
    h3. 3.1.1.b
    <ul><li>New simulation (fixed static obj/arr bug, fixed instance field token bug).</li>
    <li>Applet privileges can now be specified in the launch configuration dialog.</li>
    <li>The "exportmap" feature is now available.</li>
    <li>The JCOP Performance Test Demo ("JCOP Factor") is now included.</li>
    <li>Minor bug fixes.</li>
    </ul>
    h2. Known problems
    <ul><li>Simulations do not run (Linux, MacOS X)
         The Eclipse update manager does not set the execute permission bits for the simulations. You need to manually <code>chmod 755</code> those files in ECLIPSE/plugins/com.ibm.bluez.jcop.eclipse_3.1.1.x/simuls/
    </li>
    <li>PC/SC Support (Linux)
         JCOP Tools only works with pcsc-lite 1.2.0.
    </li>
    </ul>
    h2. Frequently Asked Questions
    Please refer to the online FAQ at http://www.zurich.ibm.com/jcop/download/eclipse/faq/.
    h2. Bug Reports
    Please send bug reports to [email protected]. Make sure you include the following:
    <ul><li>Problem description</li>
    <li>Steps to reproduce</li>
    <li>Eclipse version and build number (Help > About)</li>
    <li>JCOP Tools version (Help > About; click on BlueZ icon)</li>
    </ul>
    h2. Using JCOP Tools with Linux (>= 3.2.0)
    h3. ___
    Overview
    The current JCOP Tools release now also offer a version for the popular Linux
    operating system. Both the Windows and Linux verson provide more or less the same
    functionality, and JCOP application development can thus fully succeed on Linux systems.
    Nevertheless, installation of the JCOP Tools differ between Windows and Linux
    where the Linux version does not provide a simple installer as in case of Windows.
    Additionally, the Linux version expects a properly setup Muscle PCSC installation
    as soon as you want to use them together with physical, real cards. As Muscle
    PCSC is still not shipped with most Linux distributions, you must download and
    install them separately from the JCOP Tools.
    h3. ___     
    Contents
    h3. ___
    Software Requirements
    Linux distribution
    The JCOP Tools simulation has been developed on a Fedora Core 6 system, but should also work in case of
    many other recent Linux distributions.
    Java Development Kit
    The JCOP Tools have been developed and tested with the Sun JDK 1.4.2_13-b06
    for Linux. Your success with other Development Kits may vary as there are
    partly subtle differences across the different devlopment kits.
    PCSC
    The JCOP Tools use PCSC to talk with real cards on Linux. Most distributions
    do not ship with Linux PCSC by default (Fedora Core 6 does), you must thus download it fromhttp://www.linuxnet.com
    and install it by yourself. If you are used to software installation under Linux,
    and are not afraid of compiling and installing software packages, this should
    not be a hard problem. You have to download both the base PCSC package
    (including PCSC daemon and client libraries) and separately the driver
    for the reader you want to use. The PCSC package contains a test program
    which should tell you whether your installation is set up correctly and
    communicating with a card works. The JCOP Tools have been reported to
    work together with Muscle PCSC version 1.3.1-7.
    JPCSC
    The JCOP Tools are shipped with JPCSC which you can also download athttp://www.linuxnet.com. JPCSC
    is a JNI library which offers Java applications the access to PC/SC functions
    by mapping their requests to an underlying native PC/SC implementation. The JCOP
    Tools - mostly written in Java - thus depend on JPCSC to communicate with real cards
    on Linux. JPCSC depends on a properly installed and setup PC/SC environment.
    Especially, the JAVA_LIBRARY_PATH should list the directories where the
    PC/SC client libraries and the native JPCSC library libjpcsc.so ( downloadable as binary from
    Windows Binary Download Here )
    are installed, the CLASSPATH variable should list th___
    Miscellaneous
    What should work
    As soon as you setup your system correctly, there should only be minor differences
    between using JCOP Tools on Windows or on Linux. Emulating a real JCOP,
    debugging, shell, cap-file conersion should all be possible as in case of Windows.
    What is missing
    No drivers or tools are currently available for using JCOP30's in contactless
    mode. If you need such support, please contact directly NXP
    at for further assistance.
    Copyright 2001,2007 IBM Corp. All rights reserved.
    Edited by: lexdabear on Sep 28, 2007 4:13 PM (I hate the new edit)

  • We have too many apple devices, how can I creat another apple ID and divide the devices among 2 Apple Ids?

    Hello all,
    We started off with the original iPhone a few years ago and now between my wife and I (plus Kids) we have too many apple devices under the same apple-ID (2 X iPhone 6+, 2X macbook Pro, 2X iPod-touch and 1X iPad)
    We are constantly running into issues because everyone in the house is using the same apple id, downloading Apps using the same ID, sharing the same cloud and receiving each other's iMessages.
    I know that I can create another Apple-ID, what I am unclear on is once I do have a new apple ID, how do I assign that to half the devices (1X iPhone 6+, 1 X MBP and 1 Ipad)
    Please respond if you are able to help.
    Thank you

    I'm not sure what they told your at the Apple store, but each Apple ID can only create a single iCloud account.  If you want separate accounts for all these devices, they will have to be created using separate IDs.  Note: you can do this and still share the same ID for other services such as your iTunes store account.  The iCloud ID does not need to be the same as the ID used for other services.
    To create an account, go to Settings>iCloud and sign in with a different Apple ID.  If you want to migrate a copy of the current iCloud data to the different accounts, start by saving any photo stream photos that you want to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If you are syncing notes with iCloud that you want to keep, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from this device, not from iCloud; the devices keeping the current account will not be effected by this), provide the password to turn off Find My iDevice and choose Keep on My iDevice when prompted.  Then sign back in with a different Apple ID to create your new account and choose Merge to upload your data.

  • HT1420 I'm trying to authorize a new computer with an itune account, but my the computer statea that I have too many devices authorized. I only have 2 computers in my possession now. How can I deauthorize computer I don't have anymore without deauthorizin

    I have recently purchased a new lap top. Both my wife and I share our Itune music. When I purchesed the computer I was able to authorize my itunes account on it and move my purchaced music over from my iphone. However, I was not able to move my wifes music over because she has too many devices authorized under her account. Most of those computers are no longer in our possession and have been thrown out. How can she deauthorzise computer we don't have in our possession anymore without deauthorizing them all?

    Authorizing deauthorizing has NO effect at all on your itunes library.  You lose nothing.
    You should also alwasy have a backup copy.
    You MUST deauthorize all.
    You have the only answer there is.

  • VISACOM - Alloc Error using 488.2 USB-B Interface - too many open sessions

    I have been having the following issue in my VB .NET RF-ATE application.... It usually happens when my program enters a measurement loop (I.E. searching for P1dB). It begins to solve for P1dB and performs about 15 cycles (sets power level on SigGen and takes SpecAn meas) and then crashes due to the following error :
    As Logged in the Event Viewer :
    VISA: May 13 09:45:22: Error=bfff003c,"VI_ERROR_ALLOC: Insufficient system resources/memory": ViTable::add - too many open sessions
    As Logged in VB .NET :
    An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in RFATE.exe
    Additional information: HRESULT = 8004003c
    VI_ERROR_ALLOC
    Not sure why its happening my code is pretty solid (or so I thought) and I believe it closes the VISA session properly after each R/W operation? (See attached). I call the same procedure to talk to the GPIB instruments over and over.
    Is it possible that I am not freeing and disposing of resources properly? I have read a little about destructors in .NET etc. but I was under the impression that as soon as "Sub End" is executed that the resources were free'd up? But that doesn't explain why I would get a "too many open sessions" error occour if I am closing the session after I am finished?
    Another odd thing to note is that I have created testplan scripts and loaded them into my application with literally hundreds of measurement commands and my program didn't crash then???
    I am very new to VB and .NET (3 months) so I have a lot to learn but I can't understand why this is occouring. Any help is appreciated.
    Attachments:
    GPIB.txt ‏3 KB

    Just posting a followup... Turns out I found a way to make it work! (I have been fighting this for almost 3 days!).
    If you look at the variable declarations of my procedure.....
    Sub GPIB(ByVal Addr As Object, ByRef Data As Object, ByVal IO As String)
    Dim ioMgr As Ivi.Visa.Interop.ResourceManager
    Dim instrument As Ivi.Visa.Interop.FormattedIO488
    Dim session As Ivi.Visa.Interop.IMessage
    I use the "IMessage" interface for the variable session.
    Just before the "Sub End" is executed I use the following line to close the session :
    session.Close
    Which it would appear doesn't close the session properly when you use the "IMessage" interface.
    So I changed the line to use the "IVisaSession" interface instead :
    Dim session As Ivi.Visa.Interop.IVisaSession
    Now when the Close method is executed aparently it closes the session properly because my program isn't crashing at all!
    I was using VISA COM 3.0 Reference object (GlobMgr.dll).
    If anyone has any insight on this please do share.

Maybe you are looking for

  • Is there a way to move music from my Iphone 3gs to the Itunes on my computer without deleting it?

    Is there a way to move music from my Iphoe 3GS to the Itunes on my Windows 7 laptop? The hard drive of the laptop had been corrupted so it was replaced which makes the computer now register as being a new one alltogether.

  • SQL (Reverse) not working in Forms 6i

    Hi: Env 6i c/s 8i DB. SELECT REVERSE ( '321' ) FROM DUAL works in SQL*Plus but does not accept the REVERSE function from within a Trigger. I could put the logic in a Package on the DB but I'd like to know why it does not work in F6i ? Thanks N.

  • Apple Mail syncing while typing, multiple updates on BB for same message.

    First of all, thanks for looking and helping. Second, it's probably my fault as I am a tweaker often to my detriment. So, with disclaimers out of the way, here's what is happening: I have a MacBook Pro and my mail is IMAP from my GMail account. When

  • Garageband 4.1.2 not importing pojects to logic express 7.2

    hello i used to be able to import GB projects into logic express but now all I get is a message saying that I need to update logic express I presume the latest GB version doesn't support LE 7.2 Is there any fix for this? thankyou

  • Scenarios

    Hi Experts, Could you please tell me, How many Scenarios are there in XI ? I know some scenarios given below ( Except these scenarios ) 1) File to File 2) File to FCC 3) File to RFC 4) File to IDOC 5) File to JDBC 6) SOAP to RFC 7) File to MAIL 8) Fi