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

C#

 
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 
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 
OK, I did not realize there could be a problem with the pointers. As I have mentioned, the code works when passing small arrays. As a new C# programmer, I copied my interface to the DLL from existing code used at our company. I am fairly certain these other codes only pass relatively small arrays compared to what I will need to pass.

I see now that there are some fundamentals that I don't understand, such as automatic marshaling. Your "copy all the data" observation does not sound good. I always assumed that when I passed in an array, I was passing in a pointer. But from your article, it seems that this pointer can get moved around, and not be reliable? I have to put in more study time on this.

I am looking forward to testing yuor ideas on Monday.

I hope you understand that from the point of view of 34 years of Fortran programming, this is a headache. However, I understand the benefits to be gained by converting to a C# interface for our modeling subroutines. It is unfortunate that we don't have the resourses to convert all the Fortran, and eliminate the DLL.
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 
AnswerRe: Generating array in foreach loop Pin
dan!sh 23-Apr-10 18:42
professional dan!sh 23-Apr-10 18:42 
GeneralRe: Generating array in foreach loop Pin
mprice21423-Apr-10 18:53
mprice21423-Apr-10 18:53 
AnswerRe: Generating array in foreach loop Pin
PIEBALDconsult24-Apr-10 4:12
mvePIEBALDconsult24-Apr-10 4:12 

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.