Frozen applet upon exiting

Hi all,
I am new to applet (very very new...).
I am trying to convert a java program into an java applet and it always froze when closing the appletviewer's window. So I created a very simple dummy program, which only consists of one button, but when I click to close the window, it still forzes. Many thanks!!
Here comes the simple code.
public class test extends JApplet{
     public void init()
          this.setSize(new Dimension(200,200));
          this.getContentPane().add(new JButton("test"));
}

I've no idea if this has anything to do with it, but setting the size of an applet in the code seems a weird thing to do: the size is defined by the HTML/CSS in which it lives.
I've never used the applet viewer either - always do my testing in browsers.

Similar Messages

  • On Windows XP SP3, Firefox 17.0.1 crashes upon exit with this error: "The instruction at "0x7c84495d" referenced memory at "0xf94d9326". The mem could not be r

    Here is the error in total: "The instruction at "0x7c84495d" referenced memory at "0xf94d9326". The memory could not be "read. I have tested this on several of our workstations, all with the same error.
    I have started FF in Safe Mode and the error comes up. I've uninstalled it, renamed the install directory and still the error persists. I've updated the plugins to no avail. In Windows 7, this issue does not occur. Since it crashed upon exit, the Crash Recorder doesn't come up.

    I've already started Firefox in Safemode and the same issue persists. I've also gone in and manually disabled all add-ons and againk the same issue.

  • After switching to version 4 I can no longer save and quit upon exit. How do I get this feture to work in version 4?

    I have a Dell laptop running Windows XP version 5.1 service pack 3. I downloaded Firefox version 4 and I no longer get an option to save and quit upon exit. How do I restore this feature?

    One change in Firefox 4 is to by default stop Firefox displaying the warning message, but it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''

  • Java Applet crashes Netscape upon Exit?

    Hello, I created an Applet that I am opening in NEtscape. When I make an attempt to exit (i.e. destroy) the APplet, it crashes the whole netscape. It even happens within Netscape 7. Is there a way around this since it makes a big problem for me to use the applet if it is going to crash my Netscape browser. I`ll appreciate any suggestions or comments, thanks Ivan

    The main class that everything is in is called GUI.java and it is a frame. In order to open this as an Applet in netscape, I created a GUI_RMIApplet.java file. And The GUI_RMIApplet.html file opens the GUI_RMIApplet.java file which in return opens GUI.java. The exit call is in GUI.java file.
    The html file code is as follows:
    <EMBED type="application/x-java-applet;version=1.3" CODE = "musr.client.gui.GUI
    _RMIApplet.class" CODEBASE = "." ARCHIVE = "jar/musr.jar" NAME = "MUSR GUI APPLE
    T" WIDTH = 400 HEIGHT = 300 ALIGN = middle VSPACE = 0 HSPACE = 0 UBBoption = "de
    velop" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/pl
    ugin-install.html">
    <NOEMBED>
    The GUI_RMIApplet.java code is:
    package musr.client.gui;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import musr.server.*;
    public class GUI_RMIApplet extends Applet {
    boolean isStandalone = false;
    String message = "The application will launch in a separate window";
    GUI_RMIServer obj = null;
    /**Get a parameter value*/
    public String getParameter(String key, String def) {
    return isStandalone ? System.getProperty(key, def) :
    (getParameter(key) != null ? getParameter(key) : def);
    /**Construct the applet*/
    public GUI_RMIApplet() {
    /**Initialize the applet*/
    public void init() {
    try {
    jbInit();
    } catch (Exception e) {
    System.out.println("GUI_RMI exception: " + e.getMessage());
    e.printStackTrace();
    /**Component initialization*/
    private void jbInit() {
    // Main bulk for this applet
    GUI gui = new GUI();
    gui.setVisible(true);
    public void paint(Graphics g) {
    g.drawString(message, 25, 50);
    /**Get Applet information*/
    public String getAppletInfo() {
    return "Applet Information";
    /**Get parameter info*/
    public String[][] getParameterInfo() {
    return null;
    //static initializer for setting look & feel
    static {
    try {
    //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
    catch(Exception e) {
    And, the GUI.java class calls these funcitons when exit menu button is selected:
    GUI.this.dispose(); // disposes the frame
              System.exit(-1); // disposes the applet (?or not?)
    I think the System.exit button is messing things up but I don't know what other function I can use to close teh applet.
    Hope this is enough information.

  • Upon exiting LV7: Application Error-Memory could not be read.

    Upon terminating my application, I get the following error:
    "LavVIEW: LabVIEW.exe - Application Error
    The instruction at referenced memory at . The memory could not be 'read'."
    So far the error seems non-critical. It does not appear to affect the performance of the program in any way. However, it is certainly unnerving for my end users (not to mention me)!
    The error occurs in both the executable and the debugging mode. I have traced it to the VERY END of my application, which runs flawlessly until the very moment when I use the Exit instruction. I have also tried using Close FP with Abort VI, as well as Close FP with Exit. All threads in my application have successful
    ly terminated, so aborting does not stop any action in mid-execution, as far as I am aware.
    Searching for others in the forum who have had similar problems has turned up little useful help. Could this be a bug in the (god forbid!) runtime engine?!
    Here's a link to a discussion of the closest thing I could find to my problem.
    Thanks for any help you can give. Any whatsoever.
    -Nick
    "You keep using that word. I do not think it means what you think it means." - Inigo Montoya

    > Hmmm... I'll look into it. Many or all of the DLLs that I call were
    > written in Delphi, which has at least three string types that come
    > into play: regular Pascal String, PChar (Delphi's re-creation of the C
    > string type), and the ShortString type, which is sized to 256 bytes
    > (if memory serves). From your response, it sounds as if I should
    > search for those DLLs that use the ShortString type.
    >
    > Also, I encode many complex data forms and pass them into the DLLs as
    > array pointers. These also sound like places to start looking.
    >
    > Thanks for the input. If I ever track down the problem, I'll update
    > this discussion for posterity. In the meantime, if anyone else out
    > there has any more thoughts, I'd sure appreciate them.
    To h
    elp track it down, if you can build a debugging version of the
    Delphi DLLs, especially something that will validate memory references.
    One of the great tools for tracking down memory overwrites is a well
    implemented debugging memory library. Also, if you have some notion of
    DLL calls that write to the string and return it to LV, that would be
    the first place to look. And in the end, the solution is usually to
    look at the assumption of the DLL and send in a larger preallocated
    string. So in some cases it is easiest to look for the strings and
    arrays going into DLL node calls and one at a time give them large input
    sizes looking for the closing crash to go away. Then when the symptom
    goes away, look at the code for that DLL.
    Greg McKaskle

  • Options Startup Show my Windows & Tabs from last time,but upon exit FF doesn't ask to save tabs & windows. When restarting FF I have a home pape,but no Bookmark tabs show. Why

    Upon starting FF and going to my Home Page, I have no Bookmarks or Tabs showing. I have to Re-load the Bookmark Tabs. My options at Startup are "Show my Windows & Tabs from last time" Also using the Firefox exit,it does not ask to save tabs & windows on Exit. I'm getting tired of adding Bookmark Tabs each time I want to use FF.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/sessionstore.js
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • InCopy CS5 Crashes Upon Exit

    Hello.  I am currently working with InCopy CS5 and have an issue with the software crashing when exiting the app. This error reads:
    Windows XP (32 bit) =>  "DDE Server Window:  InCopy.exe - Application Error  --  The instruction at "0x008f77f3" referenced memory at 0x0a9f6f18".  The memory could not be "read".  Click OK to terminate...."
    Windows 7 (64 bit) => "Adobe InCopy CS5 has stopped working."  ...details below
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: InCopy.exe
    Application Version: 7.0.3.535
    Application Timestamp: 4ca67239
    Fault Module Name: Public.dll
    Fault Module Version: 7.0.3.535
    Fault Module Timestamp: 4ca671ad
    Exception Code: c0000005
    Exception Offset: 001777f3
    OS Version: 6.1.7600.2.0.0.256.4
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
    This ONLY happens when working with files on a network share (eiter UNC or mapped drive letter).  Copying the same files locally (c:\temp for example) works just fine.  Not knowing much about CS5, I obtained the files the tester was working with.  There are two fonts missing from the story / project that get replaced with the default font, and it was created with CS3.  Wouldn't suspect corrupt files if working with them locally doesn't have the problem...
    For installation, first is the base code from the CS5 disk followed by updates including Bridge 4.0.3, InCopy 7.0.3, Player for Embedding 3.1, Extended Script Toolkit 3.5.1, CS Live Services Update for CS5, and Photoshop Camera Raw 6.2.  All Adobe products are up to date according to the Adobe Applicaiton Manager.  Yes, the workstations have been rebooted.
    I don't see anything related in the support forums or through a google search.  Looking for assistance troubleshooting / resolving.  Thanks in advance.
    -Seth

    That is a sign that your preference files are becoming corrupt. Something is wrong with your system if this is happening regularly.
    Bob

  • Save upon exit

    I get a dialog each time I exit. It says C:\document and setting\osusername\.sqldeveloper\tmp\sqldev58722.sql has been modified. Save changes?
    version 1.0.0.13.43 build-main-13.43
    proper to say yes or no?

    In EA4, we began to write the contents of your SQL Worksheet to a temporary file so that if you crashed you would not lose any statements you were working on. You can just say No. When you are getting this - do you have a Worksheet open?
    -- Sharon

  • Error msg upon exit homesite

    Hi,
    Appreciate it if anyone can help to give any clues why this 3
    msg pop up everytime I exit homesite. The os used on the pc is
    Windows XP. Thanks a lot!
    1) Homesite has encountered a problem and needs to close. We
    are sorry for the inconvenience.
    2) Error Signature: AppName: Homesite5.exe AppVer:6.0.0.7658
    ModName: kernel32.dll ModVer:5.1.2600.2180 Offset: 0001eb33
    3) Application error: Exception EInvalidPointer in module
    Homesite5.exe at 000032AA. Invalid pointer operation.

    Hi,
    My operating system is: Windows 7
    Adobe version: 10.1.3
    Thx for you help.
    Take care,
    john

  • Frozen Applet window

    I have been trying to get onto Alliance and Leicester Internet Banking. After putting in my passphrase a Java Applet window comes up and freezes everything. It has a flashing cursor but I can't do anything with it. I have rung the bank and they say my settings are all as they should be and they can't understand why this is happening. Can anyone please help me.

    Take a look at my applet FAQ page, perhaps it will help:
    http://home.attbi.com/~aokabc/appletFAQ/applet.htm
    V.V.

  • Illustrator cs5.1 crashes upon exit

    When I exit Illustrator cs5.1, it crashes. I have uninstalled and re-installed. I have check box to remove preferences before uninstalling but to no avail. Help.

    Without proper system info and the actual crash logs nobody can know what is going on.
    Mylenium

  • Adobe Photoshop C5 Stopped Working Upon Exit

    I am receiving an error every time I am exiting PS CS5: Adobe Photoshop C5 Stopped Working . My system is Windows Vista 32 bit.

    thanks Mylenium
    I have laptop with this specification :
    Asus N46vz
    CPU : Intel®  Core™ i7  3610QM  Processor
    OS : Windows 7 Ultimate
    Ram : 8gig ddr3
    VGA : NVIDIA® GeForce® GT 650M  with 2GB/4GB DDR3  VRAM
    and i wanna say that my VGA driver is up to date .

  • PSE 10 crashes upon exit from program

    I have an iMac.  PSE10 (Elements) crashes each time I exit the program.  Crash report is triggered.  Any solutions?  Thank you.

    Do you have any third party plug-ins installed? That's the most usual cause for this. If so, check with the developers to see if there's an updated plug-in available.

  • Time Machine interface frozen. Must exit using command, option, escape.

    When I enter Time Machine (from Finder, email etc) I am presented with the usual interface, but apart from the starfield animation, it is frozen.
    The cursor can still be moved and background apps continue to run ok, but nothing happens when I click anything and there are no animations when I scroll over the timescale on the RHS of the screen.
    The only way out is to use Cmd, Opt, Esc
    Looking at my backup USB drive using Finder I can see that backups are working OK.
    No antivirus software in use
    Diagnostic on external backup drive (using the Mac Disk Repair utility) indicates all OK
    Can anyone advise steps to troubleshoot and to resolve?
    Thanks
      Dave
    I'm running Mavericks on late 2012 Mac desktop. Backup to 1TB G-Technology G-Drive connected direct to Mac by USB.

    Hardware Information:
              iMac (27-inch, Late 2012)
              iMac - model: iMac13,2
              1 3.4 GHz Intel Core i7 CPU: 4 cores
              8 GB RAM
    Video Information:
              NVIDIA GeForce GTX 680MX - VRAM: 2048 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 1 day 2:27:12
    Disk Information:
              APPLE HDD WDC WD10EALX-408EA0 disk1 : (1 TB)
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        disk1s2 (disk1s2) <not mounted>: 999.35 GB
                        Recovery HD (disk1s3) <not mounted>: 650 MB
              APPLE SSD SM128E disk0 : (121.33 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        disk0s2 (disk0s2) <not mounted>: 120.99 GB
                        Boot OS X (disk0s3) <not mounted>: 134.2 MB
    USB Information:
              HGST G-Drive Mobile USB 1 TB
                        EFI (disk3s1) <not mounted>: 209.7 MB
                        G-DRIVE mobile USB (disk3s2) /Volumes/G-DRIVE mobile USB: 999.86 GB (864.59 GB free)
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
              DYMO DYMO LabelWriter 400
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              com.trusteer.driver.gakl_driver_2          (1)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [invalid] com.dymo.pnpd.plist
              [System] com.orbicule.witnessd.plist 3rd-Party support link
              [System] com.sonos.smbbump.plist 3rd-Party support link
              [System] com.teamviewer.teamviewer_service.plist 3rd-Party support link
              [System] com.trusteer.rooks.rooksd.plist 3rd-Party support link
    Launch Agents:
              [System] com.orbicule.WitnessUserAgent.plist 3rd-Party support link
              [System] com.teamviewer.teamviewer.plist 3rd-Party support link
              [System] com.teamviewer.teamviewer_desktop.plist 3rd-Party support link
              [System] com.trusteer.rapport.rapportd.plist 3rd-Party support link
    User Launch Agents:
    User Login Items:
              iTunesHelper
              Dropbox
              Mail
              Canon IJ Network Scanner Selector EX
    Internet Plug-ins:
              FlashPlayer-10.6: Version: 12.0.0.38 - SDK 10.6 3rd-Party support link
              DYMO NPAPI Addin: Version: 1.0 - SDK 10.6 3rd-Party support link
              DYMO Safari Addin: Version: (null) - SDK 10.5 3rd-Party support link
              Flash Player: Version: 12.0.0.38 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              Default Browser: Version: 537 - SDK 10.9
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
              Trusteer Endpoint Protection  3rd-Party support link
              Witness  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              DYMO Label:          Version: 8.5.0.1836 - SDK 10.5 3rd-Party support link
              /Applications/iWork '09
              /Library/Frameworks/DYMO/DLS8/Addins
                        DYMO Excel Addin:          Version: 8.5.0.1836 - SDK 10.5 3rd-Party support link
                        DYMO Word Addin:          Version: 8.5.0.1836 - SDK 10.5 3rd-Party support link
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
              Destinations:
                        G-DRIVE mobile USB [Local] (Last used)
                        Total size: 931.19 GB
                        Total number of backups: 72
                        Oldest backup: 2013-04-16 15:24:27 +0000
                        Last backup: 2014-01-27 15:48:05 +0000
                        Size of backup disk: Excellent
                                  Backup size 931.19 GB > (Disk size 0 B X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   4%          WindowServer
                   2%          Mail
                   2%          mds
                   1%          EtreCheck
                   0%          hidd
    Top Processes by Memory:
              631 MB          com.apple.IconServicesAgent
              238 MB          WindowServer
              238 MB          Safari
              197 MB          Finder
              188 MB          mds_stores
    Virtual Memory Information:
              1.49 GB          Free RAM
              3.92 GB          Active RAM
              1.69 GB          Inactive RAM
              917 MB          Wired RAM
              850 MB          Page-ins
              0 B          Page-outs

  • Error upon exiting program

    Hi,
    For some reason, my program displays an error message like "someprogram.exe has encountered a problem and needs to close. We are sorry for the inconvenience" when you exit the program by clicking the X at the top or File-->Exit. This does not happen with application that controls intruments. This doesn't happen before when I had windows 2000. Now I have windows xp, I wonder if window xp can be a problem or something. I have this problem on 2 desktops. One with full installation of LV7.0 and the other with just the runtime engine. All the data comes out correct and the program stops. If I run the VI's, they work fine and exit fine. But when I run and then close the .exe file, I get that error message for all applications. I know I
    had ask a similar question before, but I thought this one explains my problem a lot clearer.
    Thanks

    Yup, here ya go, thanks for doing this.
    Attachments:
    test.vi ‏21 KB
    deplevaldll.dll ‏764 KB
    test.exe ‏60 KB

Maybe you are looking for

  • How do you get your money back from a charge you never even made on the app store?

    How do you get your money back from a charge you never even made on the app store?

  • How to get all records created this month?

    Ok I'm trying to write a query that would get records that were created this month or later but not in the past. So today is Nov 16th 2009 I need to look for all records created from 11/2009 and onward (>11/2009) Any ideas?

  • Video Out on iPhone 4

    I have Apples audio and video out cable adapter.  One end plugs into the dock connector, the other end has left and right audio out, and composite video out. When I use this cable adapter with my iPod, all videos play perfectly on any television set.

  • Viewing the linked fonts in BrowserLab

    Hi When using BrowserLab from a file in Dreamweaver, should you be able to view a non-system web font correctly - or must your site be uploaded to a server for the fonts to display correctly? I ask, because when I view my Dreamweaver pages (using a F

  • Re: Applet loading

    Hi I have added an applet to the jsp. When I ran the applet, It loaded up for the first time. But when I ran it the second time, the applet shows up but the contents aren't being painted. I have attached the applet files but avoided posting the whole