Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDI Objects



Hi

Does anyone know how to release GDI Objects on a
window 200 system. My program continually plays
different movies in a full screen window using a
MovieController. To change the movie all I call is :

currentMovie.stop();
currentMovie = null;
System.gc();

currentMovie =
getMovieFromLocation(getNextMovieName());
mc.setMovie(currentMovie, myQTCanvas.getPort(), new
QDPoint(0,0));


This keeps the memory in the JVM and the processor
down.

My problem now is that eventually the program stops
playing movies. I've managed 7hrs 45 mins so far, and
noticed after that (via Task Manager) that my program
had opened 1042 GDI Objects. I'm guessing this is not
healthy.

Has anyone any ideas about this.
My envronment is:

Win 2k Professional Service Pack 2
Java 1.3.1_01
Quicktime 5.0.2


Thanks in advance for any ideas.


Steve
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.