On Thu, 2012-06-07 at 12:09 +0930, Bruce wrote:
> On Wed, 2012-06-06 at 21:49 -0400, nando wrote:
> > I'd like to suggest a form property called 'Singleton'
> > when _new or _init is called (whichever creates the object)
> > then it will not create a second and only
> > return the first instance of it.  Somewhat like a module.
> 
> nando,
> 
> That is quite easy to implement (for forms and any class) using a static
> boolean set true in the _Init() method and checked in the _New() method.
> 
> This is a different thing altogether, I am trying to ensure that only
> one instance of an application is running.
> 
> regards
> Bruce
> 
Sorry that's both checked and set in the _new() method.
(Can't think on two things at once.)
B 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to