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

Home » Public Forums » archive » Re: Array has a corrupted discriptor, reliable?
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: Array has a corrupted discriptor, reliable? [message #61682] Mon, 28 July 2008 10:20
Juggernaut is currently offline  Juggernaut
Messages: 83
Registered: June 2008
Member
On Jul 28, 6:24 am, Joost Aan de Brugh <joost...@gmail.com> wrote:
> Hello folks,
>
> I am using IDL in corporation with Fortran and I am using arrays of
> variable size. Because I am in the initial stage of the program, I
> might make mistakes and have Fortran write data outside of my arrays.
> A simple example:
>
> idlarray = FltArr(OneTooFew)
>
> Call_External,.... (writng outside the idlarray bounds)
>
> ....
>
> End
>
> And I get a corrupted discriptor and the End in IDL. I was expecting a
> Segmentation fault, because I write data on a location that I have not
> allocated.
>
> Will I always get an error if I have Fortran write outside of my
> bounds or do I take the risk that I write data on wrong places without
> noticing?
>
> (This time, I am glad if I see an error message).
>
> Greetings,
> Joost Aan de Brugh

Well in my experience with C if you try and access outside of the
bounds of the array you pass to your C (I'd guess FORTRAN as well)
code it will just kill IDL with the error you've said. So I'd say
you'll always get an error...and you'll know by the death of your IDL
window along with that handy message.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Summing an array.
Next Topic: Re: protect our programs from others

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

Current Time: Fri Oct 10 15:24:14 PDT 2025

Total time taken to generate the page: 0.48003 seconds