Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Out of Stack when calling Fortran DLL

Status
Not open for further replies.

davidewan

Programmer
Aug 4, 2000
16
CA
I have a large Fortran DLL that works fine as an console app. When I call it through VB it punts during a large allocate() call with an Out of Stack Space error. Does VB have any intrinsic stack limitations that C++/Fortran doesn't? Any ideas? Thanks in advance. [sig][/sig]
 
David,

I know of no stack space limits in vb6. I am sure there must be some limit, however the only occurances of such in my use of vb6 has been where I mis-programmed the function - such as omitting the increment in a counter which should have rerminated a loop.

Also, there are different calling conventions for each language, which may confuse either the calling program or the called function. One particular problem in this arena is the "size" of variable types in the languages - which the programmer MUST be aware of and adjust for. A specific instance of this is the size of an integer, which may be 16 or 32 bits, depending on the language.

Hopefully this is all un-necesary, but I thought it was worth noting - just in case you haven't solved the problem.

[sig]<p>MichaelRed<br><a href=mailto:mred@duvallgroup.com>mred@duvallgroup.com</a><br>There is never time to do it right but there is always time to do it over[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top