Difference Between F5(Debug) and CtrlF5(Release)mode
-
I am writing one application using DirectX in MSVC Visual studio6.0 if i have build my application and Run it using F5 and CtrlF5 the behaviours are different. When i run my appllication in CtrlF5 mode it crashes (Access Violation)but this problem does not come when i run the same application using F5. Any help will be appreciated. Anil Kumar
-
I am writing one application using DirectX in MSVC Visual studio6.0 if i have build my application and Run it using F5 and CtrlF5 the behaviours are different. When i run my appllication in CtrlF5 mode it crashes (Access Violation)but this problem does not come when i run the same application using F5. Any help will be appreciated. Anil Kumar
when running in Debug Mode ( F5 ), most pointers ( AFAIK ) will be automatically initialized to NULL ( zero); and I also think that normal variables will also be initialized to some default values ( mostly 0 ). make sure that you initialize every variables to some good default values.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
when running in Debug Mode ( F5 ), most pointers ( AFAIK ) will be automatically initialized to NULL ( zero); and I also think that normal variables will also be initialized to some default values ( mostly 0 ). make sure that you initialize every variables to some good default values.
Maximilien Lincourt Your Head A Splode - Strong Bad
Hi MAximilien, So you mean to say that if Application is run ising CtrlF5 then some variables does take garbage value and may be the possibility of the crash. Anyway thanks for the reply i will verify in my code all the pointers and variables to initialize NULL and 0s. thanks Anil Kumar