Jump to content
Excelsior Forums
Sign in to follow this  
MaiSofTXP

Stack overflow ???

Recommended Posts

Hi.

I'm now easily calling the NormExtEx2 function on my own dll.

This function works fine for 2 seconds (it loads a lot of data in memory) and then I get a "stack overflow exception outside the vm".

The same function called in a win application works fine, so I can't understand where's the problem.

I already tried to increase the jvm stack size by using the -Xss option of java.exe.

Anyone can help me in this annoying debugging question?

Thanks!

Share this post


Link to post
Share on other sites

--- fixed ----

Don't ask me why but I fixed this by:

- compiling my java code with jdk 1.4.2

- assigning 1mb of stack to java.exe (JDK 1.5.0 Version!!!)  with editbin /STACK:1048576 java.eve

- running my 1.4.2 class on 1.5.0 java.exe

:o :o :o :o

Trying to do editbin /STACK:1048576 on java.exe 1.4.2 version IS NOT WORKING

:huh: ??? :huh:

Share this post


Link to post
Share on other sites

The only thing you need is a dll function which need 1MB of stack to run.

If you try to run this function in JDK 1.4.2, even assigning 1MB stack to the java.exe file you get a stack overflow error

If you try to run the same function in JDK 1.5 or in a webapps running under tomcat 5.5 you get no error.

It's really hard to make a sample ...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×