Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Discussions

NLSGetLocaleInfo and Stack Size error

lklawrie
Beginner
586 Views
This is really two questions.

1) NLSGetLocaleInfo -- I typically say not to use the Powerstation portability libraries -- but if I turn them off, I get an unsatisfied external for the NLSGetLocaleInfo.

2) I have a DLL that I would like to get working with IVF -- it has long been in CVF. It's called from a VB program.

It seems to work fine in "debug" mode but if I compile release, when it gets to call the DLL (I think), I'm getting an "out of stack space" error from the VB app. (Run time error 28).

I guess I can run the VB app from the IDE and try to figure out what is happening but it seems odd?

And, of course, would like to get question 1 answered.

0 Kudos
4 Replies
Steven_L_Intel1
Employee
586 Views
You need the portability library - it's sort of a misnomer nowadays to call it PowerStation compatibility. The NLS routines are in libifport.lib

For 2, you need to make sure that the DLL routines have the STDCALL calling convention. You may find that compiling with /iface:cvf (default if you convert a CVF project) is the easiest solution. Otherwise you are corrupting the stack.
0 Kudos
lklawrie
Beginner
586 Views
Figured out 1. As you say...

2 -- what's weird(?) is that the debug version (even compiled with optimization and essentially the same size as the release version) works. the release still doesn't.

I'll try to see if somehow the debug version have /iface:cvf on.
0 Kudos
lklawrie
Beginner
586 Views
2) you're right (of course -- why would we ever doubt you?). The debug version has /iface:cvf and the release didn't (I just made the release today -- thinking about making all these dlls be IVF).

At least it's explanable.
0 Kudos
lklawrie
Beginner
586 Views
FYI, tried "std call" on this (iface/cvf works fine) and got ICE. This is just a baby project compared to my other one so will submit to premier support.
0 Kudos
Reply