[ Home | Contents | Search | Next | Previous | Up ]
Date: 11/29/99
Time: 11:56:59 PM
Q.The test program will crash while exiting the app if I pop-up the
common open dialog and browse to dir. Step to reproduce
1. Bring File/Open to bring the common dialog
2. Browse to directory
3. Hit cancel for the open dialog
4. Exit the app
5. The app crash
A. It's interesting to know that accessing the common dialog for file
open actually loads (under Win95 and NT 4.0) the VC++ dynamic runtime DLL, which happily
resets the floating-point precision to what *it* wants (which happens to be a little
different setting than what Borland wants). Sounds obscure, but people
have definitely posted examples of a Borland program dying later due to a call to one of
the common dialog functions that loads the evil Microsoft DLL Try saving and restoring the
state of the math precision across your call to the open file dialog if you want to see if
that's the problem. Ugh.
Ron Burk
Windows Developer's Journal, www.wdj.com