Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    3
    Vote Rating
    0
    Fretze is on a distinguished road

      0  

    Default [CLOSED] WindowListener Events.Minimize Stack Overflow Error

    [CLOSED] WindowListener Events.Minimize Stack Overflow Error


    Hi Guys, it looks like a bug. I've implemented a window and added a minimize button and an minimize event. Here a little bit java gxt code:
    PHP Code:
    this.setClosable(true);
    this.setMaximizable(true);
    this.setMinimizable(true);
    this.addListener(Events.Minimize, new WindowListener() {
           @
    Override
           
    public void windowMinimize(WindowEvent we) {
                
    minimize();
            }
    }); 
    "this" stays for the extended Window Class from GXT 2. I get an error while i press the minimize button:

    java.lang.StackOverflowError: null
    at java.util.HashMap.get(Unknown Source)
    at com.extjs.gxt.ui.client.core.FastMap.get(FastMap.java:223)
    at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:82)
    at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:454)
    at com.extjs.gxt.ui.client.widget.Window.minimize(Window.java:569)

    If i change the minimize(); method into hide(); method in the window event it works fine. Is it a bug?

    Best Regards

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Its an issue in your code. You should use the help forum for something like this.

    The minimize method of the window fires the minimize event. As you call the minimize method again in that event, you have an endless loop which ends in an stackoverflow. You need to implement some other logic in that listener.

Similar Threads

  1. Stack Overflow Error during compiling with CheckColumnConfig
    By mark01635 in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 24 Jun 2009, 11:25 PM
  2. [FIXED][3.??] Infinite Loop (Stack Overflow error)
    By stever in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 18 Jun 2009, 6:14 PM
  3. [CLOSED] Tree stack overflow
    By assassin in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 19 Jun 2008, 5:17 AM
  4. Stack Overflow Error in DateField
    By rganesh84 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 13 Mar 2008, 6:35 AM
  5. Stack Overflow at line 6656. Error or Bug?
    By jkozak in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 28 Jan 2008, 5:50 PM

Thread Participants: 1