increasing the stack size

  • Thread starter Thread starter RA Scheltema
  • Start date Start date
R

RA Scheltema

hi there,


I'm working on a project in Visual Basic .NET, which makes use of a dll that
rquires quite a lot of stack space. Is there a way to increase the available
stack space (about 10 mb should be enough :) ) ?

My application is currently crashing with an exception (i can't figure out
what it is though).



regards,
richard
 
Which OS is your target?

If you have access to the source for the DLL and you can
recompile it, there should be a compiler setting that
will allow you to change the size of the stack.

In the old days (more then a year) you could specify (as
a compiler option or some file whose name escapes me at
the moment) if the dll shared the stack of the app or had
its own stack. Also, you could specify the size of the
stack.

However, the new world way places no effective limit on
your stack size. So, if you're using a new compiler on a
newer OS, you may start thinking along different lines as
to the source of the exception.
 
Hello, as a colleage of Richard I can specify our problem a little more:

We're targeting a mobile device with 32MB of memory.

We need to set the stack size from within VB.
We have used this same DLL on this device using Visual C Embedded to create
an executable. We set the stack size to 10MB in the program using the DLL.
We did not need to change source of the DLL for that.

Any additional clues will be highly appreciated!


Robert-Reinder
 
Back
Top