From:
<car...@te...> - 2003-02-11 11:41:47
|
Hello: > when im runing my program i sometimes get this framework exception: > > See the end of this message for details on invoking > just-in-time (JIT) debugging instead of this dialog box. > > ************** Exception Text ************** > System.InvalidOperationException: Handle is not initialized. > at System.Runtime.InteropServices.GCHandle.Free() > at System.Windows.Forms.Timer.set_Enabled(Boolean value) > at System.Windows.Forms.Timer.Stop() > at Crownwood.Magic.Controls.TabControl.OnPageMouseEnter(Object > sender, EventArgs e) > at System.Windows.Forms.Control.OnMouseEnter(EventArgs e) > at System.Windows.Forms.Control.WmMouseEnter(Message& m) > at System.Windows.Forms.Control.WndProc(Message& m) > at System.Windows.Forms.ScrollBar.WndProc(Message& m) > at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, > IntPtr wparam, IntPtr lparam) > > but i did not seen this when not using provider... Can be a memory problem ?? can you see how much memory are free when you receive this exception ?? > > sometimes im going crazy by C# and provider + firebird :) Im sure you > found in my code footprints of PANIC... :) No really :) only a suggestion you don't need to make explicit calls to FbCommand.Prepare unless you can execute the command more that once i will try to review a bit more your code today :) -- Best regards Carlos Guzmán Álvarez Vigo-spain "No tengo dones especiales.Sólo soy apasionadamente curioso" Albert Einstein, científico. |