public static XplatUIX11 GetInstance() { lock (lockobj) { if (Instance == null) { Instance=new XplatUIX11(); } RefCount++; } return Instance; }