   Release build acting strangely
  I have compiled my game in release mode but the particle system acts strangely in that dead particles suddenly reappear sometimes, even though my particle count says they are dead. It works fine in debug mode. What could be the reason for this? 
  Non-initialized variables. Usually the compiler ought to give you warnings if you try to use uninitialized variables.In debug uninitialized variables are set to different values depending if they''re on the stack or heap.In release they''re just the value that happened to be at that particular address in memory. ;  yeah, usually, it's uninitialised stuff. in debug, the memory could be memset to a default value (0x00000000, 0xfdfdfdfdfd, ect...) at program startup, while in release, it whatever it is. It's always bad to blank the memory in debug (to 0x0000000), better set it to a known value, when you can detect bad pointers to memory more easily.since it's particle effects, I guess you don't have a constructor, for speed, or it's not initialising everything.    [edited by - oliii on February 18, 2004 2:37:46 PM]