Menu

#4 Static initialization problem

open
None
5
2003-03-28
2003-03-11
Anonymous
No

It occasionally happens that a static "defaults"
parameter class object is initialized prior to the
static GlowColor's or GlowFont's that it uses resulting
in unpredictable behavior. There is a great deal of
information available about static initialization order
problems and a number of simple ways to avoid them.

johneddy@eng.buffalo.edu

Discussion

  • Daniel Azuma

    Daniel Azuma - 2003-03-28
    • assigned_to: nobody --> dazuma
     
  • Daniel Azuma

    Daniel Azuma - 2003-03-28

    Logged In: YES
    user_id=18901

    Investigating... I couldn't find any cases of static
    defaults objects using static GlowColors or GlowFonts
    specifically, but there are a bunch of cases of static
    defaults objects using the static GLUT font constants.

     

Log in to post a comment.

MongoDB Logo MongoDB