Click here to Skip to main content
15,913,486 members
Home / Discussions / C#
   

C#

 
AnswerRe: Stack overflow problem. Pin
#realJSOP24-Apr-10 0:47
professional#realJSOP24-Apr-10 0:47 
GeneralRe: Stack overflow problem. Pin
PIEBALDconsult24-Apr-10 4:29
mvePIEBALDconsult24-Apr-10 4:29 
GeneralRe: Stack overflow problem. Pin
dybs24-Apr-10 6:28
dybs24-Apr-10 6:28 
GeneralRe: Stack overflow problem. Pin
spainchaud24-Apr-10 7:00
spainchaud24-Apr-10 7:00 
GeneralRe: Stack overflow problem. Pin
spainchaud24-Apr-10 8:31
spainchaud24-Apr-10 8:31 
GeneralRe: Stack overflow problem. Pin
harold aptroot24-Apr-10 8:48
harold aptroot24-Apr-10 8:48 
GeneralRe: Stack overflow problem. Pin
spainchaud24-Apr-10 9:28
spainchaud24-Apr-10 9:28 
GeneralRe: Stack overflow problem. Pin
Luc Pattyn24-Apr-10 9:06
sitebuilderLuc Pattyn24-Apr-10 9:06 
That is not how things get done normally in a managed application. Arrays are objects, hence allocated on the heap (one of the heaps actually, yours will be the "large object heap"). To allocate on the stack you would need the "stackalloc" keyword, which is not a good idea most of the time.

I strongly recommend you allocate all arrays on the managed side and pass them to the native/Fortran world as indicated in my article.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


GeneralRe: Stack overflow problem. Pin
spainchaud24-Apr-10 9:50
spainchaud24-Apr-10 9:50 
GeneralRe: Stack overflow problem. Pin
Luc Pattyn24-Apr-10 9:56
sitebuilderLuc Pattyn24-Apr-10 9:56 
GeneralRe: Stack overflow problem. Pin
spainchaud24-Apr-10 10:21
spainchaud24-Apr-10 10:21 
GeneralRe: Stack overflow problem. Pin
Luc Pattyn24-Apr-10 10:34
sitebuilderLuc Pattyn24-Apr-10 10:34 
GeneralRe: Stack overflow problem. Pin
DaveyM6924-Apr-10 23:07
professionalDaveyM6924-Apr-10 23:07 
GeneralRe: Stack overflow problem. Pin
Luc Pattyn25-Apr-10 1:33
sitebuilderLuc Pattyn25-Apr-10 1:33 
GeneralRe: Stack overflow problem. Pin
DaveyM6925-Apr-10 3:48
professionalDaveyM6925-Apr-10 3:48 
GeneralRe: Stack overflow problem. Pin
Luc Pattyn25-Apr-10 4:05
sitebuilderLuc Pattyn25-Apr-10 4:05 
GeneralRe: Stack overflow problem. Pin
Luc Pattyn25-Apr-10 4:02
sitebuilderLuc Pattyn25-Apr-10 4:02 
AnswerRe: Stack overflow problem. Pin
Luc Pattyn24-Apr-10 1:44
sitebuilderLuc Pattyn24-Apr-10 1:44 
GeneralRe: Stack overflow problem. Pin
spainchaud24-Apr-10 8:05
spainchaud24-Apr-10 8:05 
GeneralRe: Stack overflow problem. Pin
Luc Pattyn25-Apr-10 4:04
sitebuilderLuc Pattyn25-Apr-10 4:04 
GeneralRe: Stack overflow problem. Pin
spainchaud25-Apr-10 18:57
spainchaud25-Apr-10 18:57 
AnswerRe: Stack overflow problem. Pin
spainchaud26-Apr-10 4:42
spainchaud26-Apr-10 4:42 
QuestionGenerating array in foreach loop Pin
mprice21423-Apr-10 18:11
mprice21423-Apr-10 18:11 
AnswerRe: Generating array in foreach loop Pin
Khaniya23-Apr-10 18:25
professionalKhaniya23-Apr-10 18:25 
GeneralRe: Generating array in foreach loop Pin
mprice21423-Apr-10 18:52
mprice21423-Apr-10 18:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.