Hello all, iam doing menu driven program after clicking the menu options, some times they work fine but some time core dump will happen that result in the closing of application,what exactly is core dump,why it happens. and how to overcome. please help me,and also i have posted this question in protocol forum but did not get the reply , i desparately want the answer thats why posting here .please help me.
"Core dump" is the usual term on Unix (or Mac OS X, I suppose) for the information produced when a native program crashes. Such a crash might be due to things like Segmentation Fault (illegal memory access) or an unexpected Unix signal.
Given a bug-free JVM, it is not possible to write Pure Java that will cause a core dump. The worst that can happen is a Java Error or Exception, which may cause your Java program to end, if unhandled.
As you are getting a core dump, you are suffering from one of three things: -
A bug in the JVM. Which JVM are you using. Look at the core dump and see if there is anything in it for which you might search the Web, or the JVM vendor's bug database.
A bug in JNI native code of your own. Do you have any?
A bug in third-party JNI native code. Do you have any? A JDBC driver might have some, for instance.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.