Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: StackOverflowError





On 28/07/2005, at 4:40 AM, Bjorn Roche wrote:

Hey all,

    I have a complex swing app. I am having a problem where occationally the program gets a StackOverflowError. The stack traces are really long, but I've put a snippet below.

something I have seen similar to this, but not mentioned so far, is that you may have an event listener "loop" - that is the thread that's sending the event causes some event listener to fire which in turn causes the original listener to get called again recursively.

If you a causing actions or events to be fired somehow, you can avoid this by deferring that to another time using SwingUtilities.invokeLater() for example.



cheers,

dean perry
abstract plane pty. ltd.
internet broadcasting, QuickTime Vdig for Windows, Vdig Xtra for Director 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >StackOverflowError (From: Bjorn Roche <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.