Mercurial > hg > ucis.core
comparison FBGUI/FBGUI.cs @ 69:82290dc1403c
Fix crash in FBGUI renderer shutdown
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 16 Oct 2013 17:00:19 +0200 |
parents | aedd0e4adef7 |
children | 8f31b164ce7e 1a10ca0f662e |
comparison
equal
deleted
inserted
replaced
68:e811297f5aa4 | 69:82290dc1403c |
---|---|
785 lock (RenderLock) { | 785 lock (RenderLock) { |
786 if (PaintTimer != null) PaintTimer.Dispose(); | 786 if (PaintTimer != null) PaintTimer.Dispose(); |
787 PaintTimer = null; | 787 PaintTimer = null; |
788 } | 788 } |
789 Orphaned(); | 789 Orphaned(); |
790 if (Frontbuffer != null) Frontbuffer.Dispose(); | 790 lock (RenderLock) { |
791 if (Frontbuffer != null) Frontbuffer.Dispose(); | |
792 Frontbuffer = null; | |
793 } | |
791 } | 794 } |
792 public Bitmap LockBitmapBuffer() { | 795 public Bitmap LockBitmapBuffer() { |
793 Monitor.Enter(RenderLock); | 796 Monitor.Enter(RenderLock); |
794 return Frontbuffer; | 797 return Frontbuffer; |
795 } | 798 } |