unusual error while compiling

i have windows xp pro with sp2.....

java compiler:

java version "1.4.2_05"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)

Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

whenever i run code below it gives me error:

code

-

import java.awt.*;

import java.applet.*;

import java.awt.image.*;

import java.awt.event.*;

import java.math.*;

import javax.swing.JApplet;

import javax.swing.*;

public class particle extends JApplet implements Runnable, MouseMotionListener

{

//blanking out the mouse cursor in the applet screen

BufferedImage bufferdImg;

Graphics2D bufferdImgSurface;

JButton play;

//thread

Thread pThread;

//for screen dimension

Dimension screen;

int width;

int height;

//mouse x cordinate

int x;

long timeStart;

long timeEnd;

long timeDiff;

long sleepTime;

Image image[];

MediaTracker mTracker;

public void start(){

pThread=new Thread(this);

pThread.start();

}

public void init(){

screen=getSize();

width=screen.width;

height=screen.height;

image=new Image[3];

mTracker=new MediaTracker(this);

image[0]=getImage(getDocumentBase(),"player.gif");

image[1]=getImage(getDocumentBase(),"background.jpg");

mTracker.addImage(image[0],0);

mTracker.addImage(image[1],0);

BufferedImage bim = new BufferedImage(1,1,BufferedImage.TYPE_4BYTE_ABGR);

setCursor(getToolkit().createCustomCursor(bim,(new Point(0,0)),""));

bufferdImg = (BufferedImage)createImage(width, height);

bufferdImgSurface = bufferdImg.createGraphics();

addMouseMotionListener(this);

}

public void run(){

while(true)

{

timeStart=System.currentTimeMillis();

repaint();

timeEnd=System.currentTimeMillis();

timeDiff=timeEnd-timeStart;

sleepTime=50-timeDiff;

if(sleepTime<10)

{

sleepTime=10;

}

try

{

Thread.sleep(sleepTime);

}catch(InterruptedException e){}

}

}

public void paint(Graphics g){

update(g);

}

public void update(Graphics g){

Graphics2D g2=(Graphics2D)g;

bufferdImgSurface.clearRect(0,0,width,height);

bufferdImgSurface.setBackground(Color.black);

bufferdImgSurface.drawImage(image[1],0,0,this);

bufferdImgSurface.drawImage(image[0],x,width-20,this);

g2.drawImage(bufferdImg,0,0,this);

}

public void mouseMoved(MouseEvent e){

this.x=e.getX();

}

public void mouseDragged(MouseEvent e){}

}

__

error

Unexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0xC3D2

12

Function=[Unknown.]

Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error

just occurred. Please refer to release documentation for possible

reason and solutions.

Current Java thread:

Dynamic libraries:

0x00400000 - 0x0040C000 D:\j2sdk1.4.2_05\bin\javac.exe

0x77F50000 - 0x77FF9000 C:\WINDOWS\System32\ntdll.dll

0x77E60000 - 0x77F48000 C:\WINDOWS\system32\kernel32.dll

0x77DA0000 - 0x77E35000 C:\WINDOWS\system32\ADVAPI32.dll

0x78000000 - 0x78087000 C:\WINDOWS\system32\RPCRT4.dll

0x77C10000 - 0x77C65000 C:\WINDOWS\system32\MSVCRT.dll

0x00280000 - 0x002F3000 C:\DOCUME~1\H34PH4~1\LOCALS~1\Temp\cuv140.tmp

0x77340000 - 0x773D4000 C:\WINDOWS\system32\COMCTL32.DLL

0x77C70000 - 0x77CB1000 C:\WINDOWS\system32\GDI32.dll

0x77CC0000 - 0x77D4C000 C:\WINDOWS\system32\USER32.dll

0x71B20000 - 0x71B31000 C:\WINDOWS\system32\MPR.DLL

0x771C0000 - 0x772E6000 C:\WINDOWS\system32\OLE32.DLL

0x77130000 - 0x771BD000 C:\WINDOWS\system32\OLEAUT32.DLL

0x71AD0000 - 0x71AD9000 C:\WINDOWS\System32\WSOCK32.DLL

0x71AB0000 - 0x71AC5000 C:\WINDOWS\System32\WS2_32.dll

0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll

0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.DLL

0x629C0000 - 0x629C9000 C:\WINDOWS\System32\LPK.DLL

0x72FA0000 - 0x73009000 C:\WINDOWS\System32\USP10.dll

0x08000000 - 0x08139000 D:\j2sdk1.4.2_05\jre\bin\client\jvm.dll

0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll

0x10000000 - 0x10007000 D:\j2sdk1.4.2_05\jre\bin\hpi.dll

0x009D0000 - 0x009DE000 D:\j2sdk1.4.2_05\jre\bin\verify.dll

0x009E0000 - 0x009F9000 D:\j2sdk1.4.2_05\jre\bin\java.dll

0x00A00000 - 0x00A0D000 D:\j2sdk1.4.2_05\jre\bin\zip.dll

0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll

0x6D510000 - 0x6D590000 C:\WINDOWS\system32\DBGHELP.dll

0x77C00000 - 0x77C08000 C:\WINDOWS\system32\VERSION.dll

0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL

Heap at VM Abort:

Heap

def new generationtotal 576K, used 198K [0x10010000, 0x100b0000, 0x104f0000)

eden

****************

Another exception has been detected while we were handling last error.

Dumping information about last error:

ERROR REPORT FILE = (N/A)

PC= 0x00c3d212

SIGNAL= -1073741678

FUNCTION NAME= (N/A)

OFFSET= 0xFFFFFFFF

LIBRARY NAME= (N/A)

Please check ERROR REPORT FILE for further information, if there is any.

Good bye.

__

this is all it shows

***************************************************************

****i have tested this code in other machine works fine****

***************************************************************

[5701 byte] By [hephaestus.the.metal.god] at [2007-9-30 18:25:08]
# 1
HiThis error occurs when you are using MathLib with JNI and calling those from Java. If you call them in a tightly coupled loop, then try to move them in or put some delays (Thread.sleep) and see if it works. There is a bug logged on this.Regards,Chandra
bschandramohan at 2007-7-6 19:35:36 > top of Java-index,Administration Tools,Sun Connection...