my finally is inside my while loop. but maybe i'm not doing it correctly... do I have to call unlockCanvasAndPost every time I call lockCanvas (even if it returns a null)? or do I only call unlockCanvasAndPost if the lockCanvas returns a non null canvas (which is my current implementation)?
On Apr 7, 5:34 am, "ellipsoidmob...@googlemail.com" <ellipsoidmob...@googlemail.com> wrote: > Oh - I think I can see the problem in your code now. You've got your > 'finally' block outside of your while loop, rather than inside it. > This means that you are calling lockCanvas() repeatedly without > calling UnlockCanvasAndPost(). The exception is going to be thrown on > the 2nd iteration of the while loop, as you are calling lockCanvas() > when the canvas is already locked. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---