Search:

Type: Posts; User: Norm

Search: Search took 0.22 seconds.

  1. Replies
    13
    Views
    1,247

    Re: recursion on initialization

    Thanks. Hard to get OPs to make that simple of a post.
  2. Replies
    13
    Views
    1,247

    Re: recursion on initialization

    There are two classes that are of interest: mainmenu and infopannel1
    Where is the code for them and their constructors?

    BTW The class names don't follow the java standards: classnames should...
  3. Replies
    13
    Views
    1,247

    Re: recursion on initialization

    What class(es) is that code in?
    Please edit your post and wrap your code with code tags:


    YOUR CODE HERE

    to get highlighting and preserve formatting.
  4. Replies
    13
    Views
    1,247

    Re: recursion on initialization

    Post the code in the constructors for those classes. The example should be there.

    a calls b
    b calls a
  5. Replies
    13
    Views
    1,247

    Re: recursion on initialization

    It looks like a tight loop. Each class's constructor is creating an instance of the other class.
    Can one class pass a reference to itself (this) to the other's constructor?
  6. Replies
    13
    Views
    1,247

    Re: recursion on initialization

    Can you copy and paste here some of the stack trace showing where the recursive calls are being made.

    And post the code that that goes with where the recursive calling is being done.
Results 1 to 6 of 6