www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/04/28/04:02:24

Date: Wed, 28 Apr 93 15:19:19 -0800
From: cs8023 AT mbox DOT ee DOT ncu DOT edu DOT tw
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Who has successfully run the EventQueue test program?
Cc: cs8023 AT mbox DOT ee DOT ncu DOT edu DOT tw

Hi, I have asked this kind of question before, but only one kind
fellower told me I should try a newer buggy-free GO32. Of course
I tried, but it is useless. Now I think I should repeat my problem
again and wait for hearing if one of you has met such strange problem,

The situation is that I wanna write a event driven user interface.
I checked the EventQueue (which provided by LIBGRX) docement, and found
it is very good for such purpose, then I tried to compile the test
program to inspect the performance (~/dj/contrib/libgrx/events/evtest.c)
I ran it and found it generated no keyboard event (key press are ignored
or trashed?) but mouse event dispatched very well.

Then I inspected the go32 source and internal.doc (even the event.c and
event32.c evintr.asm, etc.), and found there seems nothing wrong.

So why? 

in go32 source excehdlr.c (which embedded the func int exception_handler())
I realized that all hardware (non-maskable) interrupt will generate the
fault signal (case 0 ~0x15: will return 1 in exception handler which means
fault). I cannot track whether the control has transferred to the correct
interrupt handle. I tried add a line to print out some messages in event.c's
_ev_mshandler() and found nothing bad (I saw the message print out), but
if I add the same line in _ev_kbhandler(), the system will never go there,
( no hang and no message ).

in event.c we can found go32 use DOS's setvect and getvect to hook the int 9
handler, is this meaningful? 

if there are so much delimma in handling interrupt under the control of go32,
can you show me if there is other way to hook interrupt except to modify
go32 source.

tony
--
>> Anthony Lee, <Lee3, Shih4 Hao2><Lee:a fruit><Shih:Scholar><Hao:Hero>      <<
<< Institute of CSEE, National Central Univ | ARPA: cs8023 AT mbox DOT ee DOT ncu DOT edu DOT tw>>
>> Chungli, Taoyuan, Taiwan,#  Free China   |       oper2 AT ncuee DOT ncu DOT edu DOT tw   <<
<< Republic of China (ROC)  # Chinese Taipei|       oper2 AT ncuee2 DOT ncu DOT edu DOT tw  >>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019