BUG: Device Created/Reset etc not called back

The event handlers for Device Created/Reset etc are not called back when they are installed "too late", and that's the case for the SpaceWar sample.

It seems that it needs to be done before the GraphicsComponent is added to the GameComponents collection.

Can anyone confirm?

[305 byte] By [Laurent] at [2007-12-25]
# 1
This is the intended behavior.
The GraphicsComponent creates the GraphicsDevice when it is first initialised, and that happens when the component is added to GameComponents.
If you subscribe to the events later on, the device has already been created, so the events will already have been fired.
ShawnHargreaves at 2007-10-8 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...
# 2
Then the spacewar demo game should be fixed...
Laurent at 2007-10-8 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...