Shino90
Sorceror
SafeHandle cannot be null
Hey everyone!
I'm trying Ultima.dll for the first time, and every function gives me an ArgumentNullException. It says "SafeHandle cannot be null". (I'm calling "Ultima.Client.Calibrate();" at form load.)
Huge StackTrace:
For some reason my compiler is Dutch. Anyway, "bij" means "at", "regel" means "line".
Does anyone know what I'm doing wrong?
Hey everyone!
I'm trying Ultima.dll for the first time, and every function gives me an ArgumentNullException. It says "SafeHandle cannot be null". (I'm calling "Ultima.Client.Calibrate();" at form load.)
Huge StackTrace:
StackTrace said:bij Ultima.NativeMethods.IsWindow(SafeFileHandle window)
bij Ultima.Client.get_Handle()
bij Ultima.Client.get_Running()
bij Ultima.Client.get_ProcessStream()
bij Ultima.Client.Calibrate(CalibrationInfo[] info)
bij Ultima.Client.Calibrate()
bij Mappy.frm_main.btn_calibrate_Click(Object sender, EventArgs e) in C:\Documents and Settings\Shino\Mijn documenten\Visual Studio 2008\Projects\Mappy\Mappy\Form1.cs:regel 31
bij System.Windows.Forms.Control.OnClick(EventArgs e)
bij System.Windows.Forms.Button.OnClick(EventArgs e)
bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bij System.Windows.Forms.Control.WndProc(Message& m)
bij System.Windows.Forms.ButtonBase.WndProc(Message& m)
bij System.Windows.Forms.Button.WndProc(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.Run(Form mainForm)
bij Mappy.Program.Main() in C:\Documents and Settings\Shino\Mijn documenten\Visual Studio 2008\Projects\Mappy\Mappy\Program.cs:regel 18
bij System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bij System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()
For some reason my compiler is Dutch. Anyway, "bij" means "at", "regel" means "line".
Does anyone know what I'm doing wrong?