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

Home » Public Forums » archive » Re: Large widget identifiers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Large widget identifiers [message #33178 is a reply to message #33171] Fri, 13 December 2002 09:37 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Hmmm, I tried your example in IDL 5.4 under both Digital Unix and Windows 95,
and couldn't reproduce your error. Could it depend on the version of Windows
used?

William Thompson


"Ian Dean" <Ian.d.dean@baesystems.com> writes:

> Hi,
> Has anyone come across widget IDs "wrapping" when they reach a short int
> limit (65535)?

> We have a run-time IDL program that is running continuously for days/weeks.
> During this time several runs of data are processed. Each run requires
> approximately 400 widgets. However, without wishing to exit the software,
> the runs are performed within one program.

> The problem occurrs when the widget ID reaches 65535, the next widget to be
> created is 0, not 65536. This looks like a short int problem, but IDs are
> supposed to be long int.

> Is there a way under program control to reset the widget ID back to 1 at the
> beginning of a run?
> I realise using the development environment .reset achieves this, but that
> cannot be used in a running program.

> This occurrs on IDL PC versions 5.2-5.5. However, it does not happen on
> OpenVMS versions.

> The following lines will cause the error to occur:-

> FOR J=0L, 50000L DO BEGIN
> Base=WIDGET_BASE()
> WIDGET_CONTROL, Base, /DESTROY
> ENDFOR

> Any suggestions would be welcome
> Regards,
> Ian
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: POLYSHADE-like object graphics?
Next Topic: Re: 5.6 goodies, R.I.P. REDUCE

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

Current Time: Wed Oct 08 14:52:08 PDT 2025

Total time taken to generate the page: 0.00418 seconds