[Gambas-devel] Question about GB.CanRaise()
tobi
tobias at ...692...
Sun May 27 01:45:00 CEST 2012
On Sat, 26 May 2012, tobi wrote:
> On Sat, 26 May 2012, Benoît Minisini wrote:
> > Le 26/05/2012 14:41, tobi a écrit :
> > >
> > > Hum, I don't want to bother you again but I find my answer even less helpful now than yesterday. Let
> > > me explain the code a bit as I intend to tidy it up afterwards anyway.
> > >
> > > All input related stuff is worried about by the INPUT module input.c. It gets initialised by the
> > > main hook and then enters cbreak mode which I personally find the most useful for ncurses programs
> > > (signal generation from, e.g., ctrl-c and character-by-character input). Therefore, stdin becomes
> > > watched. A callback is associated to this watching, which is INPUT_callback(). This simply calls
> > > WINDOW_raise_read() (when entering NoDelay mode things get trickier internally but the event stuff
> > > will remain the same because, if even, only the watched fd changes). Then we are already at the
> > > problem with GB.CanRaise().
> > >
> > > Don't stress yourself, I continue gb.ncurses on another frontier happily in the meantime.
> > >
> > > Regards,
> > > Tobi
> > >
> >
> > Do you have some Gambas project to let met check that?
> >
> > --
> > Benoît Minisini
> >
> > ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Gambas-devel mailing list
> > Gambas-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-devel
> >
>
> Attached.
> You see that there are outputs to stderr at some points in the input.c and none of them are reached.
> The gambas code has, too, but neither that is reached.
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
Benoît,
haha, I finally found it: c_window.c, WINDOW_setfocus():
GB.Ref((void **) &focused);
is total nonsense. I have to give the pointer-pointer to Unref but not to Ref.
With change to GB.Ref((void *) focused); it works perfectly.
Regards,
Tobi
More information about the Devel
mailing list