/[EmuXPortal]/trunk/EmuXPortal/GameControl.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/GameControl.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/GameControl.cs	2012/10/04 21:39:20	136
+++ trunk/EmuXPortal/GameControl.cs	2012/10/04 21:52:13	137
@@ -11,8 +11,9 @@
 {
     public partial class GameControl : UserControl
     {
+        private object image_lock = new object();
         public GameControl() { InitializeComponent(); }
-        public Image GameImage { get { return gameImage.Image; } set { gameImage.Image = value; } }
+        public Image GameImage { get { lock (image_lock) { return gameImage.Image; } } set { lock (image_lock) { gameImage.Image = value; } } }
         public string GameName { get { return gameName.Text; } set { gameName.Text = value; } }
         private void GameControl_Load(object sender, EventArgs e)
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22