hi all,
i was trying to build a project which will play a list of large video files in java. however the program crashes after switching between the video files for about 50 times. From the task manager I can see memory increases and later on i did a thread trace in eclipse and found there are lots of
"Deamon System Thread (Suspended)" and
"Deamon System Thread (Suspended)" exist in the debug window.
In my code, before loading a new video file, I try "close()" the current MediaPlayer object. However I think there must be something that I forget to do here, could anyone tell me what is the correct way to close a video file so any resource and thread related will be released and closed? thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-03-22
forgot to add some info
os: windows 7 32-bit
java: jre6
fobs4jmf: 0.41
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi all,
i was trying to build a project which will play a list of large video files in java. however the program crashes after switching between the video files for about 50 times. From the task manager I can see memory increases and later on i did a thread trace in eclipse and found there are lots of
"Deamon System Thread (Suspended)" and
"Deamon System Thread (Suspended)" exist in the debug window.
In my code, before loading a new video file, I try "close()" the current MediaPlayer object. However I think there must be something that I forget to do here, could anyone tell me what is the correct way to close a video file so any resource and thread related will be released and closed? thank you
forgot to add some info
os: windows 7 32-bit
java: jre6
fobs4jmf: 0.41