I am facing one strange problem, in which i am not able to
get static object initialized completely or properly before
its use, and hence it is giving unexpected results.
Is there any compile time option to force such initialization?
Or is there any other issue which creates such problems?
Initialize the object inside a function. Then it will always be
initialized before it's used. The order in which global static
objects are initialized isn't reliable, but objects in a function are
always initialized before the function is called.
-- "I don't think this will work. That's why it's
science." --
-- Naomi Langer, 17 Feb
2003 --
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden