Stack overflow with array operations (CVF and DLL)
From: Arjen Markus (arjen.markus_at_wldelft.nl)
Date: 11/25/04
- Next message: Ryo Furue: "Re: equivalence with dummy arguments"
- Previous message: Jugoslav Dujic: "Re: CVF warning LNK4084: total image size 355000320 exceeds max (268435456)"
- Next in thread: James Van Buskirk: "Re: Stack overflow with array operations (CVF and DLL)"
- Reply: James Van Buskirk: "Re: Stack overflow with array operations (CVF and DLL)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 25 Nov 2004 13:27:20 +0100
Hello,
we encountered the following problem in a DLL compiled with CVF 6.6C on
Windows:
whil executing code like the following:
real, dimension(:), pointer :: array_new, array_old
old_size = .... (the filled part of the array)
new_size = 1.1 * old_size
allocate(array_new(1:new_size)
array_new(1:old_size) = array_old(1:old_size)
the program crashed with a stack overflow (when old_size is around
10000)
If we replace the array operation by an explicit do-loop, all goes well.
Does anyone know how to prevent such a stack overflow from happening?
Both arrays are allocated, so there is no apparent reason for this
to happen.
Regards,
Arjen
- Next message: Ryo Furue: "Re: equivalence with dummy arguments"
- Previous message: Jugoslav Dujic: "Re: CVF warning LNK4084: total image size 355000320 exceeds max (268435456)"
- Next in thread: James Van Buskirk: "Re: Stack overflow with array operations (CVF and DLL)"
- Reply: James Van Buskirk: "Re: Stack overflow with array operations (CVF and DLL)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]