Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualElchi

Posted 26 June 2013 - 06:54 PM

Are you creating a SceneElement object, or an object that in turn creates a SceneElement object, statically anywhere? In that case, that object may be constructed before the map constructors, and thus the SceneElement constructor is accessing a not-yet-constructed map object.

 

For details: http://www.parashift.com/c++-faq/static-init-order.html and http://www.parashift.com/c++-faq/static-init-order-on-first-use.html.


#1Elchi

Posted 26 June 2013 - 12:22 PM

Are you creating a SceneElement object, or an object that in turn creates a SceneElement object, statically anywhere? In that case, that object may be constructed before the map constructors, and thus the SceneElement constructor is accessing a not-yet-constructed map object.

 

For details:  http://www.parashift.com/c++-faq/static-init-order-on-first-use.html


PARTNERS