Mail Archives: djgpp/2000/01/28/11:42:06
Mehmet Alpay wrote:
>
> Well, I have to hand it to you sir: you are right on the money! :-) The
> program was indeed running under NT, and the error window title was
> "ntvdm.exe - Application Error" The code itself was an example I took
> directly from Ira Pohl's "A Book on C", which is attached below. Are there
> any work-arounds for this problem?
The only work-around I know of is not to use NT. The code you wrote will
work as you'd expect on any other platform supported by DJGPP. The NT bug is
so basic that I don't see how it can be worked around. It seems like NTVDM
uses the DJGPP application's stack to do some of its bookkeeping, which is an
absolute no-no when handling an exception in the application, because that
exception could be caused by the app's data segment being invalid in the
first place (which is exactly what happens with DJGPP's signal machinery).
But if anyone finds a way of making this work, please report it here. IMHO,
this is one of the gravest limitations of using DJGPP on NT.
- Raw text -