View Single Post
  #8   Spotlight this post!  
Unread 19-01-2012, 20:04
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Unresponsive Code... Help Please?

Patrick's suggestion above is a good start.

Also it's possible you are trying to create more than one instance of your Sweeper.

Check your code to ensure you are NEVER trying to create an instance of the Sweeper OUTSIDE of your getInstance() method.

If you have:

Sweeper sweep = new Sweeper();

anywhere else in your code, you need to replace it with:

Sweeper sweep = Sweeper.getInstance();

If you try and create multiple Sweepers by running new Sweeper() more than once, you will get the error error you described. The getInstance() method should prevent that from ever happening.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote