Re: segmentation fault



"student" <adarsh@xxxxxxxxxxxxx> wrote in message
news:1135406189.209378.79820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I have two codes in f90 which do exactly the same things. The only
> differences between the two codes is that in one case I declared the
> exact sizes of the arrays and in the other case, I declared each array
> to be an allocatable array and then later allocated their sizes. The
> answers that I get from the two codes are exactly the same too.
> However, for some reason the latter code gives a segmentation fault
> error while quitting. Can anyone point out what's happening here.

A segmentation fault is typically caused by a subscript bounds error.
You need to turn on subscript checking.


.



Relevant Pages

  • Re: Overload assignment operator for an user defined type array with vector scripts
    ... with minimum change to the existing codes. ... Assigning integer or real numbers to vector-scripted array is perfect ... Rewriting the original vector-scripted array assignment ... are vector valued subscripts and are harder to handle. ...
    (comp.lang.fortran)
  • Re: passing a string to a dll
    ... An array is just ... He stores strings into an array; these strings represent valid codes. ... bool IsValidCode(string codeToCheck) ... Putting them in a DLL has effectly zero impact. ...
    (microsoft.public.vc.mfc)
  • Re: Embedding assembler in a language
    ... the type of a variant. ... For single operand codes, this is then used ... All this things can be decided at compile time. ... (probably every time an array element is accessed). ...
    (comp.lang.misc)
  • Re: vlookup items in an array
    ... Just to show that a binary search is indeed much faster (but the array will hvae to be sorted) this code: ... Dim i As Long ... Dim lValue As Long ... new codes by looking them up in a separate worksheet. ...
    (microsoft.public.excel.programming)
  • Re: Funktionszeiger
    ... >> CallFunc mit der Startadresse des Codes als erstem Parameter. ... > Execution Protection, wie sie bereits mit dem unmittelbar vor der Tür ... Für die zu erwartende "execution protection" muß man dann vom Array auf ... Verwendung von eingebettetem Binärcode weiterhin möglich. ...
    (microsoft.public.de.vb)