Thank you very much, Michael, for your analysis!

Why does MS-DOS work for some people? Two possibilities besides a FreeDOS incompatibility: 1) the memory image is different and vital parts don't get sniped out or 2) MS-DOS function 4ch is more aggressive about recovering memory from a failed program and forces things back to a working state.

Suspect (2). MASM guide says (http://www.josheli.com/assembler/alang_hlp/Int21hFunction4Ch.html):


This function performs the following actions:
o All memory belonging to the process is released.
o File buffers are flushed and any open handles for files or devices owned by the process are closed.
o The termination handler vector (Int 22h) is restored from PSP:000Ah.
o The CTRL+C handler vector (Int 23h) is restored from PSP:000Eh.
o The critical-error handler vector (Int 24h) is restored from PSP:0012h.
o Control is transferred to the termination handler.


I think we do all these things - see task.c:return_user(). Then what else could be wrong with us?

So I've changed my mind. I think the Kaspersky bug in Bugzilla should be marked WONTFIX and a suggestion given that users grab dos4gw.exe -- readily available in many places -- to run the anti-virus. Which I will post there in a couple days unless otherwise persuaded. And I think, though I have no absolute proof, that ZRDX 0.50 still has an error causing the no-termination problem. In any case, I ain't debugging it no more no more.

OK. I sent your analysis to Sergey Beliakov. Hope he will be able to fix his ZDRX. But if you have ideas on how to make FreeDOS function 4C more fool-proof, don't hesitate to share them.


Thanks,
Lucho


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to