nanogui: Thread: GrCheckNextEvent Modifications?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: GrCheckNextEvent Modifications?
From: "Darran D. Rimron" ####@####.####
Date: 25 Jan 2000 11:29:41 -0000
Message-Id: <NCBBLCEDENCINNMFNPBCIEFPEBAA.darran@getreal.co.uk>

Greg at al,

Between Pre2 and Pre4 have any modifications been made to the way
GrMainLoop & GrCheckNextEvent - Code that worked fine (and still does)
when linked against Pre2 (example below) ceases to function when linked
against Pre4.

If the #if is set to 1 then the code functions partially then dies with
a GrRead error.  I was just wondering if there was any changes that
could effect the way my code is working....

Interesting enough, nterm.c gets the same problems (the read error) when
compiled against Pre4, and that uses GrMainLoop, IIRC.

----[ code snip ]----
#if 0
   GrMainLoop(HandleEvent);
#else
   while(1) {
      GR_EVENT ev;

/*	cycle_poll(main_loop)    */
      GrCheckNextEvent(&ev);
      HandleEvent(&ev);
   }
#endif
----[ end code snip ]----

	-Darran

--
 Darran D. Rimron            European Research & Development Manager
Real Data Services, 117-119 Marlborough Road, Romford, Essex, RM7 8AR
 ####@####.####                      http://www.getreal.co.uk/
 Phone:44-1708-70-44-33 Fax:44-1708-74-88-59 Mobile:44-7931-37-59-39

Subject: RE: GrCheckNextEvent Modifications?
From: Greg Haerr ####@####.####
Date: 25 Jan 2000 18:10:43 -0000
Message-Id: <C1962B36D9BBD311B0F80060083DFEFB041940@SYS.CenSoft.COM>

: Between Pre2 and Pre4 have any modifications been made to the way
: GrMainLoop & GrCheckNextEvent - Code that worked fine (and still does)
: when linked against Pre2 (example below) ceases to function when linked
: against Pre4.


I'll take a look at this and debug it.  Thanks

Greg
Subject: Re: GrCheckNextEvent Modifications?
From: "Greg Haerr" ####@####.####
Date: 26 Jan 2000 19:36:48 -0000
Message-Id: <053d01bf6833$37bb3620$15320cd0@gregh>

: Between Pre2 and Pre4 have any modifications been made to the way
: GrMainLoop & GrCheckNextEvent - Code that worked fine (and still does)
: when linked against Pre2 (example below) ceases to function when linked
: against Pre4.
: 
: If the #if is set to 1 then the code functions partially then dies with
: a GrRead error.  I was just wondering if there was any changes that
: could effect the way my code is working....

I can't get the code to fail in nterm.c with the #if 1.

I do get a problem with #if 0 in nterm.c, but it can be
fixed with changing GrCheckNextEvent to GrGetNextEvent.
I will look into this.

Also, you might want to look at the client.c code for
GrMainLoop, and unroll it instead of using just GrCheckNextEvent.
Specifically, thats what GrPrepareSelect is for.

In any event, yes, there seems to be a bug with GrCheckNextEvent,
and I'll have to look into it.

Greg


: 
: Interesting enough, nterm.c gets the same problems (the read error) when
: compiled against Pre4, and that uses GrMainLoop, IIRC.
: 
: ----[ code snip ]----
: #if 0
:    GrMainLoop(HandleEvent);
: #else
:    while(1) {
:       GR_EVENT ev;
: 
: /* cycle_poll(main_loop)    */
:       GrCheckNextEvent(&ev);
:       HandleEvent(&ev);
:    }
: #endif
: ----[ end code snip ]----
: 


[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.