It's not a secret anymore!*
The moose likes Java in General and the fly likes Segmentation Violation & Stack Overflow error... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Segmentation Violation & Stack Overflow error..." Watch "Segmentation Violation & Stack Overflow error..." New topic
Author

Segmentation Violation & Stack Overflow error...

ums sum
Greenhorn

Joined: Oct 22, 2002
Posts: 1
Hi,
I am having some Bean components that access Native C++ code.
This applet runs fine on a browser.
I am using Java 1.3 PlugIn.
However when I run it standalone, I get Segmentation Violation error or it gives a Dialog �Unhandled Exception in java.exe - OXC00000FD Stack Overflow�. I am using Java1.3_01 version.
The exception seems to be coming from a library that makes a Recursive Call to a method.
Please let me know if there is any solution to this problem.
Thanks.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
From ERROR CHECKING WITH JNI
There are several interesting aspects of the C++ function worth mentioning. One is that C++ doesn't automatically check for null pointers (references) in the way that the Java language does. If you pass a null string to the function and don't check for it, you'll probably get a "Segmentation violation" error.

Sounds like you are not passing some parameter in your JNI call.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Segmentation Violation & Stack Overflow error...