[Issue 1067] release flag kills Win32 applications without unittest flag?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 18 10:44:42 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1067
torhu at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |torhu at yahoo.com
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #2 from torhu at yahoo.com 2007-03-18 12:44 -------
Line 78 in winsamp.d:
assert(RegisterClassA(&wc));
Moving 'RegisterClassA(&wc);' out of the assert fixes the problem.
-release removes assert, while -unittest adds them back in. Your test app
probably has the same kind of bug. An app can't rely on code in asserts,
because that code isn't included when compiling in release mode.
--
More information about the Digitalmars-d-bugs
mailing list