Re: Strange behaviour ? of Subscript range values of the form low:high [message #76625 is a reply to message #76550] |
Tue, 21 June 2011 04:22  |
Brian Daniel
Messages: 80 Registered: July 2009
|
Member |
|
|
On Jun 21, 3:33 am, LNpellen <lnpel...@gmail.com> wrote:
> The story goes on - and the problem occurs again and this time even
> stranger (to me).
>
> I stop my code just before the error occurs and do some printouts:
>
> IDL> help, doseTemp
> DOSETEMP FLOAT = Array[502, 494]
> IDL> help, doseTempFull
> DOSETEMPFULL FLOAT = Array[512, 512]
> IDL> print, x1,x2,y1,y2
> 5 506 3 496
> IDL> doseTempFull[5:506,3:496]=doseTemp
> IDL> doseTempFull[x1:x2,y1:y2]=doseTemp
>
> Everything works fine to this point. The latter line above is the next
> line in the code and it appears to run with no errors so lets continue
> the code:
>
> IDL> .cont
> % XMANAGER: Caught unexpected error from client application. Message
> follows...
> % Subscript range values of the form low:high must be >= 0, < size,
> with low <= high: DOSETEMPFULL.
> % Execution halted at: GENERATEDOSEDISPLAY 106 P:\RTPlanViewer
> \RTPlanViewer\generateDoseDisplay.pro
> % RTPLANVIEWER_EVENT 291 P:\RTPlanViewer
> \RTPlanViewer\RTPlanViewer_event.pro
> % XMANAGER_EVLOOP_STANDARD 478 C:\Programfiler
> \ITT\IDL71\lib\xmanager.pro
> % XMANAGER 708 C:\Programfiler\ITT
> \IDL71\lib\xmanager.pro
> % RTPLANVIEWER 109 P:\RTPlanViewer
> \RTPlanViewer\RTPlanviewer.pro
> % $MAIN$
>
> So the "doseTempFull[x1:x2,y1:y2]=doseTemp" works in command line, but
> not in the code..... I understand nothing.
>
> Ellen
Ellen,
Try pulling this section of code out of your application and into a
stand-alone procedure. I have no idea why this would happen, but
maybe XMANAGER is to blame? If true, the bug is with XMANAGER and the
GUI side of IDL, if not, the bug is much more sinister. Just my two
cents.
-Brian
|
|
|