comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Send_Event warning
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Send_Event warning [message #12983] Wed, 30 September 1998 00:00
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <3611A56E.900CDCA2@earthling.net> Phillip & Suzanne David
<pdavid@earthling.net> writes:

[..nightmare (must've been) bug-hunting-history deleted..]

The following probably cannot be repeated too often, so:

> The moral of this story is that you must be VERY careful when defining
> structures of types IDL defines internally, because your definition may
> override the IDL pre-determined definition with an incorrect definition,
> thereby causing no end to your grief.

I would say that RSI has some blame in this peculiar incident,
writing routines that *don't* check the actual structure of a
structure when writing to it (lethal!). Though I suspect that
the routine in question actually *allocated* the space for
the event by itself(?) - and then the *reading* of the data
came out wrong..(?)

This is probably done in the interest of efficient event handling (and
that *is* very important). It would be OK if they had set things up to
guarantee the correctness of {WIDGET_LIST}.

> Personally, I'd like to see RSI change this so that all structures they use
> internally are pre-initialized properly at the beginning of the session. In
> the meantime, the warning stands.

Hear, hear! I'm positivley fed up with having to write structure
definitions of internal structures into my code, *knowing* that it
makes the code prone to crashing in some *future* version of IDL.
I want to be able to say simply "my_draw_event = {WIDGET_DRAW}" !

Regards,

Stein Vidar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Would you consider this a bug?
Next Topic: [Q] coloured vertices in IDLgrSurface ...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:56:34 PDT 2025

Total time taken to generate the page: 0.80018 seconds