OpenAmiga (294/964)

From:Jesse McClusky
Date:12 Sep 2000 at 09:57:02
Subject:Re: AMIOPEN: freeevent()

> From: "Rudi Chiarito" <rudi@amiga.com>
>
> I have seen this bug in at least three different programs. Maybe it's
> better to spread the word.
>
> To reproduce it, run your program under intent_shell_debug or
> intent_media_debug. Move the mouse over your program's window. If it
> makes Elate enter the debugger, I bet Fleecy's house that you are calling
> freeevent() the wrong way.
>
> The problem occurs if you use as the first parameter of freeevent()
> the field "targetavo" from the event you just received. That is wrong.
> It isn't an AVO's duty to free events. It's AVE's. So you should use the
> value you obtained from kn_dev_lookup("/device/ave/*") instead.

Just thought I'd interject this:

For those of you using VP directly, the call should usually look something like this:

ncall ave, freeevent, (ave, msg : -)

just like in all of the examples.

Jesse

Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html