U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » Untrivial EditString bug(?) in FreeBSD(and may be all POSIX)
Re: Untrivial EditString bug(?) in FreeBSD(and may be all POSIX) [message #21461 is a reply to message #20772] Thu, 21 May 2009 16:48 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Sun, 05 April 2009 17:22

Thank you!

Mirek, could you please tell what is your typical solution to avoid static controls? How do you then manage controls shared between a number of objects of the same class.




Lazy intitalization:

EditString& GlobalEditor()
{
static EditString x;
return x;
}

(Sorry for the very late reply Wink

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using DMC
Next Topic: Cross Compile HowTo?
Goto Forum:
  


Current Time: Sun May 10 17:22:27 GMT+2 2026

Total time taken to generate the page: 0.00558 seconds