S
Sanny
I have an Applet which gives no compilation error. But hangs sometimes
when running.
It works most of the time. But sometime it hangs in between. It has 20
functions and I want to know at which function it hangs. The Applet
cannot be run using Applet Viewer It can only run on a web browser. So
I cannot use the debug feature.
What I want is incase it gets into error I catch the error and report
that error to the web server. Can I use Try/Catch in the main program
to know which function is causing that error?
Like Below
Appletmain(){
try{
function1()
function2()
function3()
function4()
..
..
..
function19()
function20()
} catch outofbounds{
Senderrormessage()
}
}
The things I want to know is
1. What type of error causes the program to hang.
2. Which function this hang occurs.
3. Which Variable Causes this hang.
4. Values of that Variable during that hang.
5. Stack of functions being referred.
These things are possible in C++ Is it also possible in Java. The Big
problem is that I cannot use Debugger as the Applet only runs in
Browser.
Bye
Sanny
when running.
It works most of the time. But sometime it hangs in between. It has 20
functions and I want to know at which function it hangs. The Applet
cannot be run using Applet Viewer It can only run on a web browser. So
I cannot use the debug feature.
What I want is incase it gets into error I catch the error and report
that error to the web server. Can I use Try/Catch in the main program
to know which function is causing that error?
Like Below
Appletmain(){
try{
function1()
function2()
function3()
function4()
..
..
..
function19()
function20()
} catch outofbounds{
Senderrormessage()
}
}
The things I want to know is
1. What type of error causes the program to hang.
2. Which function this hang occurs.
3. Which Variable Causes this hang.
4. Values of that Variable during that hang.
5. Stack of functions being referred.
These things are possible in C++ Is it also possible in Java. The Big
problem is that I cannot use Debugger as the Applet only runs in
Browser.
Bye
Sanny