Re: Can I use array elements of a pointer like a regular array? [message #63827] |
Thu, 20 November 2008 15:14 |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
lalit.jalota@yahoo.com schrieb:
> On Nov 20, 2:57 pm, lalit.jal...@yahoo.com wrote:
>> OK Gurus,
>> why does this happen?
>>
>> IDL> print, n_elements( *(*pstate).ptr_counts )
>> 120
>> IDL> print, *(*pstate).ptr_counts[1]
>> Subscript range values of the form low:high must be >= 0, < size, with
>> low <= high: <No name>.
>> Execution halted at: MS_GENERATESPECTRUM 489 C:\ISI\_Rad-Img\code
>> \ms_generatespectrum.pro
>> MS_GENERATESPECTRUMBUTTON 54 C:\ISI\_Rad-Img
>> \code\mxfsim_eventcb.pro
>> MXFSIM_BASE_EVENT 25 C:\ISI\_Rad-Img\code
>> \MXFSim.pro
>> WIDGET_PROCESS_EVENTS
>> $MAIN$
>>
>> ????
>
>
> SORRY - my mistake - I know what's wrong now. Can I delete this
> question???
Much better is you describe the solution, so others who run into this
failure they can read also your answer.
cheers
Reimar
|
|
|
|
Re: Can I use array elements of a pointer like a regular array? [message #63839 is a reply to message #63838] |
Thu, 20 November 2008 12:04  |
lalit.jalota
Messages: 2 Registered: November 2008
|
Junior Member |
|
|
On Nov 20, 2:57 pm, lalit.jal...@yahoo.com wrote:
> OK Gurus,
> why does this happen?
>
> IDL> print, n_elements( *(*pstate).ptr_counts )
> 120
> IDL> print, *(*pstate).ptr_counts[1]
> Subscript range values of the form low:high must be >= 0, < size, with
> low <= high: <No name>.
> Execution halted at: MS_GENERATESPECTRUM 489 C:\ISI\_Rad-Img\code
> \ms_generatespectrum.pro
> MS_GENERATESPECTRUMBUTTON 54 C:\ISI\_Rad-Img
> \code\mxfsim_eventcb.pro
> MXFSIM_BASE_EVENT 25 C:\ISI\_Rad-Img\code
> \MXFSim.pro
> WIDGET_PROCESS_EVENTS
> $MAIN$
>
> ????
SORRY - my mistake - I know what's wrong now. Can I delete this
question???
|
|
|