We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
to release  memory (Read 417 times)
to release  memory
Mar 24th, 2008, 7:51pm
 
hi guys!!
i'm a problem.
i write a big program,when i to play video many times,
program became lag,i think,maybe memory problem,help me,
what am i going to do?

this is program bug report:

# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0807c8a0, pid=5000, tid=4472
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_12-b03 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x7c8a0]
#
# An error report file with more information is saved as hs_err_pid5000.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#


thank you!!
Re:  to release  memory
Reply #1 - Mar 26th, 2008, 5:06am
 
I had this same problem.  Check that you are not trying to copy an array to a variable that is null.

this is bad:
 int[] oldImage;
 jmyron.imageCopy(oldImage);


this is good:
 int[] oldImage = new int[numPixels];
 jmyron.imageCopy(oldImage);
Page Index Toggle Pages: 1