Mark E Mark#858
Hi Everyone,
I have just tried to get the my first App running with Graphic Mill.NET and I have hit a hurdle at the first step which is loading a picture into the BitmapViewer.
Background Info:
* .NET VERSION 1.1
* My project is a smart Client. I have a Stub windows App which then loads the main formapp from a URL which has a control libary with the GraphicMill Embedded in that application (I know its convoluted but it must have this arc).
Code that Causes Error:
Exception:
Any help would be appreciated!!!!
Regards
Mark
I have just tried to get the my first App running with Graphic Mill.NET and I have hit a hurdle at the first step which is loading a picture into the BitmapViewer.
Background Info:
* .NET VERSION 1.1
* My project is a smart Client. I have a Stub windows App which then loads the main formapp from a URL which has a control libary with the GraphicMill Embedded in that application (I know its convoluted but it must have this arc).
Code that Causes Error:
Aurigma.GraphicsMill.WinControls.BitmapViewer bitViewer = new BitmapViewer();
// Load Picture throws an error.., The file is there as I browse to it with OpenFileDialog
bitViewer.Bitmap.Load(pngFileName);Exception:
"Object reference not set to an instance of an object at ImagingFramework.DataItem.FreePointerValue(DataItem* )\r\n at Aurigma.GraphicsMill.Codecs.FormatReader.Dispose(Boolean disposing)\r\n at Aurigma.GraphicsMill.SyncHandler.Dispose()\r\n at Aurigma.GraphicsMill.Codecs.FormatReader.Dispose()\r\n at Aurigma.GraphicsMill.Bitmap.Load(String fileName)\r\n at TopUpTvControlLibrary.ttPNGImageConverterV2.ConvertPNG(String pngFileName, Int32 width, Int32 height, String& resultantFileNameAndPath)\r\n at TopUpTvControlLibrary.ttInputPanel.mnuItemLoadPNG_Click(Object sender, EventArgs e)\r\n at System.Windows.Forms.MenuItem.OnClick(EventArgs e)\r\n at System.Windows.Forms.MenuItemData.Execute()\r\n at System.Windows.Forms.Command.Invoke()\r\n at System.Windows.Forms.Command.DispatchID(Int32 id)\r\n at System.Windows.Forms.Control.WmCommand(Message& m)\r\n at System.Windows.Forms.Control.WndProc(Message& m)\r\n at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n at System.Windows.Forms.UserControl.WndProc(Message& m)\r\n at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r\n at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r\n at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.Run(Form mainForm)\r\n at TopUPTVControlPanel.MainForm.Main()Any help would be appreciated!!!!
Regards
Mark