Memory Leak Java Plugin with Swing Applet

Hi
I experience the following problem and desperately need help on this. The Java Plugin (I use Version 1.3.1_02) seems to have a problem in printing Swing Applets.
The problem can easily be reproduced (at least with NT):
1) Start Internet Explorer or Netscape (I used 5.5/4.07)
2) Launch the following demo swing applet
http://java.sun.com/products/plugin/1.3.1_01a/demos/jfc/SwingSet2/SwingSet2Plugin.html
3) Print the applet and observe (using task manager) the memory used by the browser process (the memory used by the process will increase every time you hit the print button but never decrease unless you shut down the browser)
4) Print a couple of times (you may want to pause your print queue) and you will be able to crash your computer
This seems to be the same bug reported with 4638742. However it says "in progress" for quite some time and I was wondering if some genious might know a work around for this.
Cheers

You might want to read an article about memory leaks in Java:
http://www-106.ibm.com/developerworks/library/j-leaks/

Similar Messages

  • Error Downloading Plugin for Swing Applet

    Dear Fellows!
    i am using following Java Script in HTML to download Java Plugin for Swing Applet.
    <b>But</b>
    During download and installation it gives the error that the file is corrupted try to download again...., I have checked it on more than one PC,s and platforms ....
    Please guide if there is problem in script or in the available plugin...
    Thanking you !!!!!
    /////////////////////// HTML /////////////////
    <html>
    <head>
    <title>Swing Applet</title>
    </head>
    <body BGCOLOR="#ffffff" LINK="#000099">
    <!--"CONVERTED_APPLET"-->
    <!-- CONVERTER VERSION 1.1 -->
    <SCRIPT LANGUAGE="JavaScript"><!--
    var info = navigator.userAgent; var ns = false;
    var ie = (info.indexOf("MSIE") > 0 && info.indexOf("Win") > 0 && info.indexOf("Windows 3.1") < 0);
    //--></SCRIPT>
    <COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
    var ns = (navigator.appName.indexOf("Netscape") >= 0 && ((info.indexOf("Win") > 0 && info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
    //--></SCRIPT></COMMENT>
    <SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 600 HEIGHT = 500 codebase="http://java.sun.com/products/plugin/1.1.2/jinstall-112-win32.cab#Version=1,1,2,0"><NOEMBED><XMP>');
    else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.1.2" java_CODE = "Client.class" java_CODEBASE = "./Chat" java_ARCHIVE = "*.class" WIDTH = 400 HEIGHT = 50 pluginspage="http://java.sun.com/products/plugin/1.1.2/plugin-install.html"><NOEMBED><XMP>');
    //--></SCRIPT>
    <APPLET CODE = "Client.class" CODEBASE = "./Chat" ARCHIVE = "*.class" WIDTH=600 HEIGHT=500 ></XMP>
    <PARAM NAME = CODE VALUE = "Client.class" >
    <PARAM NAME = CODEBASE VALUE = "./Chat" >
    <PARAM NAME = ARCHIVE VALUE = "Client.class" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1.2">
    </APPLET>
    </NOEMBED></EMBED></OBJECT>
    </body>
    </html>

    I remeber there is an example in Sun java toturial,
    you may find the answer from there.
    peter
    JawaBeginer (A powerful JavaIDE tool for Java Programmer, exp: beginer)
    http://www.pivotonic.com

  • Memory Leak in Sun's Demo Applets

    After banging my head over some memory leak errors in an applet I wrote, I decided to try out one of Sun's applets to see if it too leaks memory. I loaded \j2sdk1.4.2_03\demo\applets\Animator\example1.html in IE6 (WinXP, JRE 1.4.2_03) and just left it running with the focus. At 11:45am the task manager showed IE to be using 13,100KB and over the past hour and a half that amount steadily increased to 16,424KB and keeps rising (now it's 16,452KB.) The problem I've run into in my applet (which does a lot of painting like this demo applet) is that it eventually just consumes more and more memory until it locks up.
    So I was wondering what advice people have. I've used JProfiler and I can't find any leaks in my code. I'm debating on making my applet a java application, but I'm just not sure if it will suffer from the same memory leaks. Thanks for any help.

    Well off hand with out seeing any code, check that you are not instantiating any object repeatedly...
    (creating new objects over and over and never getting rid of the old ones by still keeping referenced to it)
    something like this...
    public class MemoryEater
       MemoryEater()
          MemoryEater eater = new MemoryEater();
    public void doSomeThing()
       MemoryEater eater = new MemoryEater();
       eater.doSomeThing();
    }now this is a exaggerated example, but it might help you locate your memory leak...
    and memory usage varies depending on application and OS states... 1mb is not much of a rise, but then again overtime it makes a difference... Try other applets and see if you get the same results... I am currently running the same applet, and for a short bit the usage steadily climbed maybe about 2mb overall but then started to level off...
    Running the same applet, I got the initial memory usage increase,
    then a slow steady climb for about another meg and now it fluctuates between 36.5 and 37.5 mb...
    Note: I also have other Internet Explorer windows open, so naturally my overall memory usage is going to be higher...
    If it is still a problem, you can try re-installing the JVM...
    I hope this was helpful...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Memory leak in Flash with Win7, IE9, 64bit

    I have been having an issue for quite some time on 2 different computers. Both of them are Windows 7 64bit and use IE9.
    Generally I have 1 - 5 tabs open in IE at any given time. Usually one of them is a tab for Yahoo Mail. Other tabs are related to whatever I may be searching for or doing at that time, so pretty varied. Throughout the day at random times I will begin to get a grey icon for anywhere on some tabs where there is supposed to be a flash video (like the ad in the right side of the Yahoo Mail tab)... When it happens I can open Task Manager in windows and I notice that 1 or two "iexplore.exe *32" processes have memory consumed in excess of 600,000K. When I end those processes I am again able to see any flash videos that need to be viewed.
    If I leave Task Manager open throughout the day I can see the memory consumption increase on various tabs until I cannot see any more flash videos or even open new tabs in IE until I end those processes. Further, the memory does not get released if I just close the tabs in IE, but I must either end the specific process or close all tabs in IE so that IE is completely unloaded.
    I have since uninstalled the Flash player and the issue has gone away. I can re-install the flash player and the issue returns. Can you please help? This has been a huge annoyance and I had hoped that it would be fixed sooner or later. Unfortunately it has not been fixed and has finally prompted me to post something....

    First, I just wanted to follow up on this thread and let you guys know that we'll continue to look into it.  I also want to clarify some player behavior, and provide tips for helping to identify a defect that we can take action on.
    Whenever you refresh/reload a tab, the browser should signal to us that our process is being destroyed, at which point we would release all of our resources and shut down.  SergeStone's comment above makes it sound like this might not be happening in a particular case.  I'm going to build out a few tests this week to explore this in more detail, and I'll follow up with results.
    Also, it's worth discussing the difference between memory consumption and memory leaks.  Flash Player is designed to consume a percentage of your available memory.  If you have a 32-bit machine with 2GB of RAM, we're going to consume a lot less memory than a 64-bit system with 16GB of RAM. 
    Not all Flash content is authored well.  If the ActionScript developer is continuously loading objects into their SWF and never releasing them (a slide-show is a good simplistic example), you'll see a steady usage increase as each new object loads in.  You should also see that evenutally, our automatic Garbage Collection process will kick in.  Memory will peak out, and then you'll see a short CPU spike as we look at all of the available objects and cull as many unused ones as possible, consumed memory will dip down significantly (as long as we can cull stuff), and then start growing again until the next time GC kicks in.  We tend to do this judiciously, as poorly-timed GC can cause games to stutter if it happens when lots of things are moving around on the display and you don't have a lot of available CPU.
    If it's our bug, it should be straightforward to fix, and I can follow up to this thread with a beta build for you guys to evaluate once we have one available.  In the meantime, it would be interesting to know if you're seeing the problem on our current Beta builds (which is where we would do the work). 
    Here's a link to the latest Beta download:
    http://labs.adobe.com/downloads/flashplayer11-5.html
    Also, the simplest example is the most actionable.  If you can find a situation where a site in a single tab reproduces the problem, that's a quick and easy thing to deal with.  If the repro case involves opening seven tabs and waiting six hours, someone needs to repeat that over and over, until they can isolate what content experiences the problem and then iterate a bunch more with a debugger attached to try and isolate the root cause.  The more complicated the content, the more difficult that is.
    Secondly, I wanted to offer some actionable suggestions that you could use now to work around this issue. 
    Try Firefox or Chrome.  Both of these browsers run Flash Player as a separate process.
    For those of you using Performance Monitor and other tools to measure, you can directly observe the resources used by Flash Player
    For the folks concerned about Bookmarks synchronization, both Firefox and Chrome provide native bookmark syncing and import from IE mechanisms. 
    Xmarks is a really nice, free utility that provides cross-browser, cross-platform bookmark synchronization.
    Thanks,
    Jeromie Clark

  • Memory leak in AudioServicesCreateSystemSoundID with sound files

    hi !
    Instruments indicates a 64Ko memory leak in "AudioServicesCreateSystemSoundID" when I use a sound that I have created with GBand / iTunes. When I use the sound file "tap.aif" from the "sysSound" sample, there is no memory leak.
    What's wrong with my audio file ?
    It's a AIFF file, 95Ko, 8 bit mono 22Khz @ 176kbps.
    thanks...

    appFile = [ [ NSBundle mainBundle ] pathForResource : _filename ofType : _extension ];
    FileUrl = [ NSURL fileURLWithPath: appFile ];
    if ( AudioServicesCreateSystemSoundID( ( CFURLRef ) FileUrl, &soundID ) != kAudioServicesNoError )
    return false;
    I don't think the code is wrong because when I change the name of the sound in '_filename', there is no leak.
    I haven't found in the documentation the audio file properties ( 8/16 bits, ... ) supported by 'AudioServicesCreateSystemSoundID'.
    The code is for iPhone.

  • Auto detect missing java plugin with Netscape

    How do I get Netscape to automatically detect that it is missing the Java Plugin, and go to Sun's download page? I have IE 5.5 and Netscape 7 installed.
    My html looks like this:
    <OBJECT
    classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase = "http://java.sun.com/products/plugin/1.4/jinstall-1_4-windows-i586.cab#Version=1,4,1,0"
    WIDTH = "100%" HEIGHT = "500" >
    <PARAM NAME = CODE VALUE = "nz.astarte.planwise.gantt.GanttApplet" >
    <PARAM NAME = CODEBASE VALUE = "." >
    <PARAM NAME = ARCHIVE VALUE = "pwgantt.jar" >
    <PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">
    <PARAM NAME = "scriptable" VALUE = "false">
    <PARAM NAME = "projectId" VALUE="<%=theForm.getProjectId().toString()%>" >
    <PARAM NAME = "userId" VALUE="<%=userId%>" >
    <PARAM NAME = "logLevel" VALUE="INFO" >
    <COMMENT>
    <EMBED
    type = "application/x-java-applet;version=1.4"
    CODE = "nz.astarte.planwise.gantt.GanttApplet"
    JAVA_CODEBASE = "."
    ARCHIVE = "pwgantt.jar"
    WIDTH = "100%"
    HEIGHT = "500"
    projectId ="<%=theForm.getProjectId().toString()%>"
    userId ="<%=userId%>"
    logLevel ="INFO"
    scriptable = false
    pluginspage = "http://java.sun.com/getjava ">
    <NOEMBED>
    Could not find a plugin supported by your browser. Please download Sun's Java Plugin 1.4.1
    </NOEMBED>
    </EMBED>
    </COMMENT>
    </OBJECT>
    IE will autodetect and begin the download process. I know Netscape doesn't auto download, but it should at least detect it needs the plugin and go to the http://java.sun.com/getjava page so the user can do a manual download. However all I get is a big black blob where my applet should be.
    Thanks in advance,
    Andrew

    I have modified your EMBED tag a little bit. I think it should work:
    <EMBED
    type="application/x-java-applet;jpi-version=1.4.1"
    CODE="nz.astarte.planwise.gantt.GanttApplet"
    CODEBASE="."
    ARCHIVE="pwgantt.jar"
    WIDTH="100%"
    HEIGHT="500"
    projectId="<%=theForm.getProjectId().toString()%>"
    userId="<%=userId%>"
    logLevel="INFO"
    scriptable=false
    pluginspage="http://java.sun.com/j2se/1.4.1/download.html">
    <NOEMBED>
    Could not find a plugin supported by your browser. Please download Sun's Java Plugin 1.4.1
    </noembed>
    </embed>
    Hope it helps!
    A.A.
    How do I get Netscape to automatically detect that it
    is missing the Java Plugin, and go to Sun's download
    page? I have IE 5.5 and Netscape 7 installed.
    My html looks like this:
    <OBJECT
    classid =
    d = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase =
    e =
    "http://java.sun.com/products/plugin/1.4/jinstall-1_4-w
    ndows-i586.cab#Version=1,4,1,0"
    WIDTH = "100%" HEIGHT = "500" >
    <PARAM NAME = CODE VALUE =
    E = "nz.astarte.planwise.gantt.GanttApplet" >
    <PARAM NAME = CODEBASE VALUE = "." >
    <PARAM NAME = ARCHIVE VALUE = "pwgantt.jar" >
    <PARAM NAME = "type" VALUE =
    E = "application/x-java-applet;version=1.4">
    <PARAM NAME = "scriptable" VALUE = "false">
    <PARAM NAME = "projectId"
    Id" VALUE="<%=theForm.getProjectId().toString()%>" >
    <PARAM NAME = "userId" VALUE="<%=userId%>" >
    <PARAM NAME = "logLevel" VALUE="INFO" >
    <COMMENT>
    <EMBED
    type =
    type = "application/x-java-applet;version=1.4"
    CODE =
    CODE = "nz.astarte.planwise.gantt.GanttApplet"
    JAVA_CODEBASE = "."
    ARCHIVE = "pwgantt.jar"
    WIDTH = "100%"
    HEIGHT = "500"
    projectId
    projectId ="<%=theForm.getProjectId().toString()%>"
    userId ="<%=userId%>"
    logLevel ="INFO"
    scriptable = false
    pluginspage = "http://java.sun.com/getjava ">
    <NOEMBED>
    Could not find a plugin supported by your
    ted by your browser. Please download Sun's Java Plugin
    1.4.1
    </noembed>
    </embed>
    </COMMENT>
    </object>
    IE will autodetect and begin the download process. I
    know Netscape doesn't auto download, but it should at
    least detect it needs the plugin and go to the
    http://java.sun.com/getjava page so the user can do a
    manual download. However all I get is a big black blob
    where my applet should be.
    Thanks in advance,
    Andrew

  • PGA memory Leak issue along with TNS: listener could not hand off client connection

    Hi,
    We have two Oracle Database instances in a 32 bit Standard Edition Windows OS machine with 3 GB RAM : 1) 1525 MB (SGA+PGA) 2) 515 MB (SGA+PGA)
    Recently we upgraded the RAM from 3 GB to 4 GB. Subsequently we upgraded the SGA + PGA of the 2nd instance to 771 MB.
    This has resulted into PGA memory leak issue reported in the alert log file and trace file.
    Reverting back the SGA+PGA size to 515 MB solved the issue.
    Is this issue related to Address Windowing Extension (AWE)?
    Is the reason related to Total memory for all the cumulative Oracle instance should be < 2GB.
    How to solve this?
    Mon Jul 15 08:21:25 2013
    ORACLE V10.2.0.4.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU                 : 4 - type 586, 4 Physical Cores
    Process Affinity    : 0x00000000
    Memory (Avail/Total): Ph:1068M/4023M, Ph+PgF:4985M/7933M, VA:18M/2047M
    Instance name: dp3
    Redo thread mounted by this instance: 0 <none>
    Oracle process number: 0
    Windows thread id: 4484, image: ORACLE.EXE (SHAD)
    *** 2013-07-15 08:21:25.133
    *** ACTION NAME:() 2013-07-15 08:21:25.133
    *** MODULE NAME:() 2013-07-15 08:21:25.133
    *** SERVICE NAME:() 2013-07-15 08:21:25.133
    *** SESSION ID:(90.829) 2013-07-15 08:21:25.133
    ******** ERROR: PGA memory leak detected 6302928 > 30176 ********
    HEAP DUMP heap name="pga heap"  desc=6C98A800
    extent sz=0x206c alt=92 het=32767 rec=0 flg=3 opc=3
    parent=00000000 owner=00000000 nex=00000000 xsz=0x0
    EXTENT 0 addr=7FC10008
      Chunk 7fc10010 sz=    64996    free      "               "
      Chunk 7fc1fdf4 sz=  2097676    freeable  "krfrbAllocate: "
    Dump of memory from 0x7FC1FDF4 to 0x7FE20000
    7FC1FDF0          1020020D 7FC10010 03871E90      [.. .........]
    7FC1FE00 00000000 00000000 00000000 00000000  [................]
      Repeat 131103 times
    EXTENT 1 addr=7FA00008
      Chunk 7fa00010 sz=    64996    free      "               "
      Chunk 7fa0fdf4 sz=  2097676    freeable  "krfrbAllocate: "
    Dump of memory from 0x7FA0FDF4 to 0x7FC10000
    7FA0FDF0          1020020D 7FA00010 03871E90      [.. .........]
    7FA0FE00 00000000 00000000 00000000 00000000  [................]
      Repeat 131103 times
    EXTENT 2 addr=7F7F0008
      Chunk 7f7f0010 sz=    64996    free      "               "
      Chunk 7f7ffdf4 sz=  2097676    freeable  "krfrbAllocate: "
    Dump of memory from 0x7F7FFDF4 to 0x7FA00000
    7F7FFDF0          1020020D 7F7F0010 03871E90      [.. .........]
    7F7FFE00 00000000 00000000 00000000 00000000  [................]
      Repeat 131103 times
    EXTENT 3 addr=70A50008

    There may be something fixed in the patch that gives the error rather than mysterious hangs.  I would prefer that, myself.  There may be something in the patch that changes how Oracle allocates user, system and program areas.
    At some point you spend more trying to limp things along in a growing environment than simply upgrading.  32 bit environments these days is an indicator that management is figuring some false economies.  But that's their prerogative.
    The PGA can be affected by many things, not least of which is how the application uses it.  Much has been written about it, my own experience has been more is used than most people say.  But that is probably just my app.  Note there are different ways to set it, and a parameter with "target" in it might not be a hard limit.  Different execution plans for the same code may use different amounts of memory - there can even be situations where forcing some code to use a sort area instead, or even forcing more operations to disk, can free up more pga for everyone else.  It depends.  But that's why I look at multi-pass operations in dbconsole.

  • Memory leak in OracleDataReader with UDT in 11g

    Hi,
    Can someone confirm that the following code is leaking (hugely!):
    command = new OracleCommand("select c.polygon from spatial c", connection);
    reader = command.ExecuteReader();
    while (reader.Read())
    reader.Dispose();
    command.Dispose();
    where polygon is SDO_GEOMETRY.
    Memory consumption for this code in Task Manager is +100MB above "normal" and it does not drop after calling Dispose() methods. I've also noticed that this "leak" is proportional to FetchSize. GC.Collect also does not change anything.
    Is it a bug of 11g beta or am I missing something?

    I'm not sure what do you mean by ODAC 2007. I couldn't find anything useful on your website regarding "ODAC 2007". I'm using Oracle 11g ODAC 11.1.0.5.10 Beta and I'm particularly interested in SDO objects. Based on your code samples I created strongly-typed C# classes for SDO objects and everything works like a dream (apart from this memory leak). And the performance is just OUTSTANDING! Keep up the good work!
    BTW: Congratulations regarding ODP.NET API for binding UDT with C# classes. It's very intuitive and easy to use even if you want to create C# classes from the scratch, i.e. without any wizards. Did I mention performance? :-)
    Many thanks Kiminari for your reassurance: it means a lot to me since I can now keep working on my project without any worries (I need a stable version of ODP.NET with UDT before Q2 2008). I was thinking about using OLE DB but the performance was horrible due to marshalling, passing untyped objects, etc. But you've just saved the day, and for development purposes the leaking version is absolutely fine.
    Just small questions: when can we expect "ODAC 2007" or at least another beta? More less? Any estimations?

  • Memory leak in WebView with custom UserAgent

    Hi,
    When I use the method with using NavigateWithHttpRequestMessage to modify my UA, I cannot dispose my webview properly - there seems to be a memory leak when calling this.
    In my code when I comment out the following line:
    myWebView.NavigateWithHttpRequestMessage(httpRequest);
    The memory leak goes away.
    Please note this seems to be a WP8.1 issue only, the memory leak does not appear on Windows.
    Is this a known issue? Is there a work around here?

    Hi Justin,
    Could you share a reproducible sample with us for a test purpose?
    What kind of other information include in your httpRequest, let's say if we exclude the UserAgent information, will the memory not release issue happens again, I'm not sure if the issue happens on setting UserAgent or on NavigateWithHttpRequestMessage
    part.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Java Plugin with Netscape6

    After downloading and installing Netscape6, I tried to access a page with an applet. I downloaded the Plugin as directed. I Shut Down the PC, rebooted it, and still Netscape cannot find the Plugin. I have fought this for about a month in different ways. Can anyone tell me what I need to do?
    Thanks very much,
    Betty

    thanks for the tip it worked but I made a copy of the file named NPOJI600.dll from C:\Program Files\JavaSoft\JRE\1.3\bin and move it to C:\Program Files\Netscape\Netscape 6\Netscape 6\plugins it works now
    I also had a problem with the adobe plug-in to fix that make a copy of NPPDF32.dll in C:\adobe\acrobat 5.0\reader\browser and paste it to C:\Program Files\Netscape\Netscape 6\Netscape 6\plugins
    thanks again
    Chenz

  • Firefox 21.0 on OS X 10.8.4 still has a memory leak that occurs with no Add ons, 1 tab and leads to 3GB of memory usage in 10 minutes.

    While using Firefox 21.0 on OS X 10.8.4 with 4GB RAM, Firefox memory usage marches up and up until at 3GB (on my iMac) Firefox hangs and is 100% non-responsive and must be killed with Force Quit. It takes 10 minutes to occur.
    No Add Ons
    One tab

    John99,
    Unfortunately, the problem was WORSE in FF 22.0. I regressed to FF21.0 and shut off automatic updates. I may even go back to FF3.6, which is the last one where I didn't see this problem.
    Thank you for trying but as a longstanding developer I know that pervasive memory leaks is a sign of a broken development process. Thank you for trying...

  • I am using Mandriva Linux now and I have installed Firefox 6 but I could not install Java plugin with it. Can anyone please help me how to install it?

    I am using Mandriva Linux now.
    But I am using Firefox 3.6.8, but I cannot install java plugin in it.
    Can anyone please help me how to install it?

    The plugins folder in the Firefox installation folder doesn't exist by default. There is no default plugin in Firefox 4, so that folder would be empty and in thus not included. If you want to use that location then you need to create a plugins folder.
    Did you try /usr/lib/mozilla/plugins ?

  • Getting java plugin with j2eesdk

    I download and install Java 2 Platform, Enterprise Edition 1.4 SDK Update 1 and I don't get Java plugin in IE. If I install j2sdk-1_4_2_04-windows-i586-p.exe i can install Java runtime public and get Java plugin.
    Why it is so?

    I download and install Java 2 Platform, Enterprise
    Edition 1.4 SDK Update 1 and I don't get Java plugin
    in IE. If I install j2sdk-1_4_2_04-windows-i586-p.exe
    i can install Java runtime public and get Java plugin.
    Why it is so?Because J2EE != (J2SE + more stuff). It's a different thingy.

  • Java Plugin With Client Cert Auth and Keepalive

    Hi,
    I have a Java Applet that connects to a site requiring client side certificates. The site is running Apache 2.0.54 with a keepalive timeout of 15 minutes. As a result the applet prompts the user for a client side certificate on its inital connection and does not prompt again unless the user has been idle for more than 15 minutes. My problem is that when we try this through our Squid proxy, the Applet prompts the user on virtually every request, making for a very annoying user experience.
    We have played with both Squid 2.4 and 3.0 and tweaked serveral promising-sounding parameters with no success. Is there something I am missing? I can mail any logs or config files as needed. One clue is that it does seem to work for requests spaced at about 2 seconds or so apart, but not more.
    Thanks for any insights as to what might be happening here.
    Best,
    Seth

    Issue resolved by creating a role with the relevant UME Action permissions. Not entirely sure if this is the best way forward, but it seems to work.
    If anyone has other suggestions, or better ways of doing this, please let me know.
    Thanks

  • Memory leak in dll with an imaq-function

    Hi,
    I am currently writing a dll which uses the imaqImageToArray function.
    Of course this function allocates new memory every time it converts a picture, and as I convert 180 pics a second and the Program shopuld run for hours that is quite a problem for me.
    The solution should of course be the function free(void* MyPointer). And if I use malloc to allocate some random memory, instead of the imaqImageToArray, this works perfectly.
    However when I call free() to release memory allocated by the imaqImageToArray function, the dll/LabView-Program will crash.
    So I wonder what function the imaq-Functions use to allocate memory and how I can get rid of it again. Is there another imaq-function?
    Thanks already!
    Greetings
    Solved!
    Go to Solution.

    Hi,
    sorry for the misunderstanding. I use the imaqImageToArray function inside the .dll. The Code Hence is a c-code.
    #include "extcode.h"
    #include "nivision.h"
    ... some stuff/the dll-function etc....
    uint8_t *Pointer;
    Pointer = (uint8_t)imaqImageToArray(MyImage,MyRect,&Rows,&Columns);
    if(Pointer!= NULL)
         free(Pointer);
    ... other stuff
    Sadly I can't find a detailed description of the function. I assume the void* Pointer returned by imaqImageToArray points to an Array, however I am not sure wether it points to a usual c-array or a LabView Array, meaning:
    typedef struct {
        int32_t dimSize;
        double Element[1];
        } LVArray;
    That would explain why free(); won't work.
    I think I got a step further though, as I found a function in the "extcode.h" called    DSDisposePtr(void *p). That should be the equivalent to free() for LabView Datastructures.
    However even though I have included everything from the cintools directory explicitly to the project, the Linker complains about a not found externic object. Anyone knows which .lib files I need to include where to be able to use that function?
    Thanks

Maybe you are looking for

  • BI Integrated with CRM

    hi, experts, I am new hand in sap CRM. Recently I configurated to fullfil marketing analysis by the integration of BI & CRM.I have performed the following required steps from standard BI Connectivity building block ,general Settings for BI Integratio

  • Help needed -- Considerations to be taken while migrating 2 different SCCM 2007 hierarchies into a single SCCM 2012 Hierarchy.

    Hi, I need your help on consolidating two different SCCM 2007 infrastructures into a single SCCM 2012. We have two different SCCM 2007 Hierarchies, Lets say 123 and ABC About 123 SCCM 2007 -- On 123 Hierarchy, we have already started migrating client

  • Attaching a word document to the work item

    Hello Everyone,                           I want to send an attachment with the work item. My requirement is as follows. Iam working on CRM.  The Business Object which Iam using is BUS2000116. In this Activity, there is an attacment tab. Here the use

  • Some Two-page Spreads export to PDF/Blurb with Errors

    Hi, I have created a Blurb book in default portrait format. Some of the two page spreads (sample: first two images in portrait format, third image squared on the top right) do not export correctly. The second image, the one, which will be on both pag

  • Print preview is different from print in scripts

    Hi, i am  having issue in alignment of sap script .i have adjusted my form output based on print preview .but when i am taking the output i  am having alignment issue .Not only that there are some missing column boundaries in printout. Now i cant mak