« Return to Thread: How to show a form with keyboard shortcut

Re: How to show a form with keyboard shortcut

by HARADA Kazutaka-2 :: Rate this Message:

Reply to Author | View in Thread

Doriano Blengino wrote:
> I think that in the call to XNextEvent you are passing a NIL pointer;
> libX11 tries to put data in the area pointed by pEvent. You should
> allocate some memory in it, enough to hold the event data. If, on the
>  

Hi, Doriano
Thanks for your comment.

As you suggested above, I added following line to allocate the memrory,
then program runs normally. No signall 11 error.

    pEvent = Alloc(15)      ' 15 is temporary size

Now I can go to the next step!

Regards,

--
--------------------------------------
Kazutaka HARADA
  e-mail:kazutaka802@...
--------------------------------------


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

 « Return to Thread: How to show a form with keyboard shortcut