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

Home » Public Forums » archive » 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
Large widget identifiers [message #33184] Fri, 13 December 2002 02:59 Go to previous message
Ian Dean is currently offline  Ian Dean
Messages: 26
Registered: January 2000
Junior Member
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
Previous Topic: handling numbers
Next Topic: Clean your PC properly - wk u10 i32dq3 87idq2iw71

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

Current Time: Wed Oct 08 18:55:51 PDT 2025

Total time taken to generate the page: 0.00469 seconds