Hi everyone,

I am trying to write a simple program in which i can either mak an image sharper or darker. The thing is my program always crashes when it is run although it compiles without any errors.

The error is as follows:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x3067FA8
Dynamic libraries:

The function that i use for making the image sharper or darker is as follows

public BufferedImage imagebrightness(BufferedImage SourceImage2, float Factor1)
BufferedImage Image4;
RescaleOp op = new RescaleOp(Factor1, 1, null);
Image4 = op.filter(SourceImage2, null);
return Image4;

I really do not know if it is something that i did wrong or is it a bug
I am using windows 98 by the way.

I really hope someone ca help me with this

Thank You

Yours Sincerely

Richard West