File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Segmentation Violation & Stack Overflow error...

ums sum

Joined: Oct 22, 2002
Posts: 1
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.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
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:
subject: Segmentation Violation & Stack Overflow error...
jQuery in Action, 3rd edition