Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Mono

Server Support on Mono Forum dedicated to RunUO 2.0 on Mono.

Reply
 
Thread Tools Display Modes
Old 02-07-2008, 12:09 PM   #1 (permalink)
Forum Expert
 
RavonTUS's Avatar
 
Join Date: Aug 2004
Location: in a house.
Age: 39
Posts: 582
Send a message via ICQ to RavonTUS Send a message via AIM to RavonTUS
Default Need 'GetConsoleWindow' for Mono or Wine

Greetings,

On my Windows RunUO server I run a script call WatchUO. It's a nifty second windows that pops up. It has a lot of details about my shard, so I can quickly take a look at what's going on.

However, this script fails to run on my Linux server. I get this error...

Code:
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.EntryPointNotFoundException: GetConsoleWindow
  at (wrapper managed-to-native) Server.Engines.WatchUO.Plugins.RunUOControlPlugin:GetConsoleWindow ()
  at Server.Engines.WatchUO.Plugins.RunUOControlPlugin.UpdateHideConsoleButton () [0x00000] 
  at Server.Engines.WatchUO.Plugins.RunUOControlPlugin.OnLoad () [0x00000] 
  at Server.Engines.WatchUO.PluginLoader.LoadPlugins () [0x00000] 
  at Server.Engines.WatchUO.Core.CreateMainForm () [0x00000] 
  at Server.Engines.WatchUO.Core.Initialize () [0x00000]
I have tracked it down to this section of code. It is trying to use part of the Windows Kernel to run and it is not available in Linux. However, I would think it would be part of either Mono or Wine.

Code:
		[DllImport("Kernel32.dll")] 
		private static extern IntPtr GetConsoleWindow();
Does any one have a suggestion as how to replace this section of code in order to get this working?

-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 02-07-2008, 11:59 PM   #2 (permalink)
Lurker
 
Join Date: Feb 2008
Posts: 1
Default Win-0.9.48 has that function...

GetConsoleWindow() is implemented in Wine-0.9.44 and later.
Try running the app on that.
dankegel is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5