473,378 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

increasing the stack size

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
Jul 21 '05 #1
2 2362
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.
Jul 21 '05 #2
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

"RA Scheltema" <r.a.scheltema[viral][s][p]@[m]dacolian.nl> schreef in
bericht news:3f*********************@news.xs4all.nl...
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).

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Bryan Rickard | last post by:
I wrote a simple program in VB6 to copy all the files from a directory on a CD-ROM to my hard disk. There are about 10 files, each about 30MB. The program uses Get and Put to get data from the...
10
by: Shuo Xiang | last post by:
Greetings: I know that variables declared on a stack definitely does not reside in heap space so there is only a very limited amount of stuff that you can store in the stack of a function. But...
2
by: Darryn | last post by:
Hi Please help... i am running an application where one of my data validation funtions linked to a Dataset event ColumnChanging keeps throwing a StackOverflowException!!! My code is fine, i...
2
by: RA Scheltema | last post by:
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...
1
by: alfie27 | last post by:
I currently have a working program that is a stack that stores integers. Now i have to convert it to store strings instead of integers. I have been working on this for hours and just keep getting...
9
by: Jensen Somers | last post by:
Hi, Is it possible to change the stack size of a DLL from within the source code? When using threads you can specify the size of the stack you want the thread to use, but since my application...
4
by: Rahul B | last post by:
Hi, I was getting the error: sqlcode: -911 sqlstate: 40001 , which is "The maximum number of lock requests has been reached for the database." So i increased the locklist size to 200 from the...
0
by: wajedali | last post by:
hi......... i have problem in incresing and decreasing the component. I have a one main panel (i.e. i used as _basewindowPanel) in that again two panel in that two panel like wise.... ...
4
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
Visual Studio 2005, C# WinForms application: Here’s the question: How can I increase the standard 1 MB stack size of the UI thread in a C# WinForms application? Here’s why I ask: I’ve...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.