Saturday, April 9, 2011

6


Problem: When working on a Windows 7 Phone game, many variables were uninitialized in some of the game object’s constructors, but because these variables were rarely used outside of the constructors, and in the constructors the variables passed in were used as is instead of being assigned to a global variable like they were supposed to be, this error was not found for a while.

Impact: The program would attempt to access these uninitialized variables and crash.

Solution: The constructors had to be edited to include the forgotten code.

No comments:

Post a Comment