Release mode problem ?
-
Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.
-
Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.
Require neat code review . Refer this[^] article for better understanding.
Prasad Notifier using ATL | Operator new[],delete[][^]
-
Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.
As stated by Mila025 maybe an initialization problem. uninitialized vars gets zeroes in debug mode, but gets garbage in release one. For instance if you pass a struct to a Windows API, and you not initialize it, then maybe zeroes will be harmless, while garbage will make your program crash. hope that helps :) -- modified at 6:11 Friday 29th December, 2006
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.
-
Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.
This is something very common, You should look: - If your pointers are correctly initialized. - If you are using some dll's or specific external files or programs, you should take a look if they are placed in the debug and in the release folders. (think that if somewhere of the app you are using something like GetAppPath() then you can have some problems related to files that could be in the debug folder but not in teh release one. - Look in the project options that you have the same configuration in the DEBUG than in the RELEASE. - There can be several other things, this can be hard to find out what is happening, but if you cannot find the problem you can always try to use MessageBoxes spreaded from the beggining to the end in order to be able to give us more information on what's happening, where and when. Hope this helps even if it is not a very good answer.