Good Catch

Thanks for the comment and your point is taken.

Using the initial implementation, it's possible for numerous concurrent instances to be created which defeats the whole purpose. Your tweak would pre-instantiate the Singleton and simply return the one that's there in all cases.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <img> <p>
  • Lines and paragraphs break automatically.

More information about formatting options

Syndicate

Syndicate content

This is not the home of dotProject. It is the home of CaseySoftware, LLC. Any dotProject support questions should be referred to their support forums.

Recent comments

Ads

Text Link Ads Directory of Computers/Tech Blogs