From a41007fd80baef445cc6dfbfcd6ce1fe424391d7 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 25 Jan 2008 13:45:32 +0000 Subject: [PATCH] Trying to debug deadlock on screen resolution enumeration. --- Source/OpenTK/Platform/X11/X11XrandrDisplayDevice.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Platform/X11/X11XrandrDisplayDevice.cs b/Source/OpenTK/Platform/X11/X11XrandrDisplayDevice.cs index ec7a4f09..b71f709a 100644 --- a/Source/OpenTK/Platform/X11/X11XrandrDisplayDevice.cs +++ b/Source/OpenTK/Platform/X11/X11XrandrDisplayDevice.cs @@ -23,17 +23,18 @@ namespace OpenTK.Platform.X11 static X11XrandrDisplayDevice() { - lock (display_lock) + //lock (display_lock) { for (int i = 0; i < API.ScreenCount; i++) { unsafe { + Debug.Print("Checkpoint 1"); XRRScreenSize[] array = Functions.XRRSizes(API.DefaultDisplay, i); Debug.Print("{0} resolutions.", array.Length); Debug.Indent(); int count = array.Length; - while (--count != 0) + while (count-- != 0) Debug.Print(array[count].ToString()); Debug.Unindent(); }