Hi Jim,
> You get a warning when you lose the surface. You do a lock. Work on the
> memory. Then an unlock. You are guaranteed to have that memory when it is
> locked. If you do a lock and the surface is lost it will tell you. It has
> been several years since I have worked with DD, but thats the way I remember
> it. Am I getting something wrong here?
You don't get a "warning" - you get a notification that the memory was
already thrown out (past tense). A warning would be a notification
before it is thrown out such that you still have time to do something
about it (like copy it to a more persistent buffer).
It is true that it will not be thrown out while locked, but you can't lock
the surface forever. You should only lock the surface during actual
rendering. Between rendering calls you can therefore lose the bits.
...jim
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".