delorie.com/djgpp/bugs/show.cgi | search |
V2 images won't run under Windows 3.0. It seems to be due to a bug in Windows 3.0. In particular, images GPF during the exit phase, killing the DOS session. The exact line causing the problem is FREESEL(__go32_info_block+26) around line 207 in crt0.s. Commenting this line causes images to execute OK. The only thing I see special about this selector is the base is never set (uses the default of 0). I have not had a chance to see what can be done to workaround the bug.
Windows 3.0 crashes if you free a selector while it is still in fs or gs. I added code to crt0.S to set fs/gs to zero before freeing the selector and V2 images now run fine under Win 3.0. Patch sent to DJ.
I like the title of this one. Definitely it is Windows 3 that _causes_ the crashes. :-)
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |