Mail Archives: djgpp/1997/12/08/09:46:46
On Mon, 8 Dec 1997, Joshua James Turpen wrote:
> There seems to be a problem with the ___djgpp_hw_exception trick and
> windows 95 (of course).  The below program crashes my DOS box everytime. 
> Sometimes it takes a while, but it's very consistent.  As far as I can
> tell, I'm doing everything by the book.  I hook the PIT timer, I don't
> re-program it, I chain to the old handler, yada yada yada... 
One thing you did NOT do is to lock your interrupt handler and every data
it touches in memory.  This is a sure course to a disaster.  For more
details, see section 18.9 of the DJGPP FAQ list (available as
v2/faq210b.zip from the same place you get DJGPP). 
> Is there a reliable way to raise signals this way under win95?  I've
> written code to hook the interrupt gates directly, but I'm saving that as
> a last resort.  
Why don't you use the SIGALRM signal?  It is already set up for you so it 
works; why reinvent the wheel?
- Raw text -