openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Chromaticity Attribute from C Interface


From: Paul Miller
Subject: Re: [Openexr-devel] Chromaticity Attribute from C Interface
Date: Tue, 15 Feb 2005 12:50:15 -0600
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Yves Poissant wrote:
When switching from VC6 to VC7, it is worth considering how many globals and static variables there are in the application. Because VC7 CRT processes those statics in a very different way and different order, switching to VC7 can mean much more work than expected. Unfortunately, it is not just a matter of compiler price.

My biggest problem when switching was getting the hang of the new UI. But everything else about the environment is better, especially the infinitely better template support. All of my code compiled and worked properly (better, even) when I switched.

If you do have a lot of statics, you should control the order of initialization by placing them in functions, ie.

MySingleton &getSingleton()
{
        static MySingleton ms;
        return ms;
}

If you always refer to the "global" instance of MySingleton through the getSingleton() call, the order of initialization will always be under your control.



--
Paul Miller | address@hidden | www.fxtech.com | Got Tivo?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]