Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 11-10-2004, 07:59 AM   #1 (permalink)
freesoft_2000
Code Monkey
 
Join Date: Oct 2004
Posts: 51
freesoft_2000 is on a distinguished road
Question Images

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
Function=[Unknown.]
Library=(N/A)
Dynamic libraries:
0x7CC00000 - 0x7CC1D000 C:\WINDOWS\SYSTEM\IMAGEHLP.DLL

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
freesoft_2000 is offline   Reply With Quote
Old 11-10-2004, 08:21 AM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,174
Belisarius is on a distinguished road
Which JVM are you using?
__________________
GitS
Belisarius is offline   Reply With Quote
Old 11-10-2004, 09:59 PM   #3 (permalink)
freesoft_2000
Code Monkey
 
Join Date: Oct 2004
Posts: 51
freesoft_2000 is on a distinguished road
Hi everyone,

i am using jdk 1.4.2

Richard West
freesoft_2000 is offline   Reply With Quote
Old 11-12-2004, 08:14 AM   #4 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,174
Belisarius is on a distinguished road
Hmmm . . . you don't seem to be the only one having these problems juging by the newsgroups and Java forums. The only reasonable suggestion I've come across is reinstalling Java. Grab the latest version of 1.4.2 and try a reinstall.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 11-21-2004, 01:12 AM   #5 (permalink)
freesoft_2000
Code Monkey
 
Join Date: Oct 2004
Posts: 51
freesoft_2000 is on a distinguished road
Hi everyone,

I tried grabbing the latest jdk but still hasd the same problem and it seems my code is correct and that the problem is a bug in the windows os as when i asked one of buddies to run my program on his linux os it worked great.

I also checked on some windows forums and it seems that yes this is indeed a bug
and that microsoft may fix it in the future.

Yours Sincerely

Richard West
freesoft_2000 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What a new article looks like with images .. sde Lounge 0 10-27-2004 05:37 PM
Possible to prevent images in a page from caching? Epsilon HTML, XML, Javascript, AJAX 2 09-06-2004 02:58 AM
New images reaffirm planet is lord of rings redhead Code Newbie News 0 07-05-2004 01:56 AM
Extracting Images from Email? Admin Lounge 5 06-01-2004 04:56 PM


All times are GMT -8. The time now is 01:55 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting