SendToEmail plugin crashes

Dec 17, 2010 at 10:01 PM

Cropper Crashes when trying to open the 'Options' dialog when the SendToEmail plugin is present in the Plugins folder

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Cropper.Email.EmailOptionsForm..ctor(EmailSettings settings)
   at Cropper.Email.SendToEmailFormat.Fusion8.Cropper.Extensibility.IConfigurablePlugin.get_ConfigurationForm()
   at Fusion8.Cropper.Options..ctor()
   at Fusion8.Cropper.MainCropForm.ShowOptionsDialog()
   at Fusion8.Cropper.MainCropForm.HandleMenuOptionsClick(Object sender, EventArgs e)
   at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.MenuItem.MenuItemData.Execute()
   at System.Windows.Forms.Command.Invoke()
   at System.Windows.Forms.Command.DispatchID(Int32 id)
   at System.Windows.Forms.Control.WmCommand(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at Fusion8.Cropper.CropForm.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Using Cropper 1.9.4 with Cropper Plugins 1.3.6 on Window 7 x64

Dec 17, 2010 at 10:32 PM

This plugin also crashes Cropper when capturing, different error:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Cropper.Email.Extensions.ReplaceTokens(String input, FileInfo file)
   at Cropper.Email.SendToEmailFormat.ImageCaptured(Object sender, ImageCapturedEventArgs e)
   at Fusion8.Cropper.Core.ImageCapture.OnImageCaptured(ImageCapturedEventArgs e)
   at Fusion8.Cropper.Core.ImageCapture.Capture(Int32 x, Int32 y, Int32 width, Int32 height, Double maxThumbnailSize)
   at Fusion8.Cropper.Core.ImageCapture.Capture(Int32 x, Int32 y, Int32 width, Int32 height)
   at Fusion8.Cropper.Core.ImageCapture.Capture(Point location, Size size)
   at Fusion8.Cropper.Core.ImageCapture.Capture(Rectangle captureArea)
   at Fusion8.Cropper.MainCropForm.TakeScreenShot(ScreenShotBounds bounds)
   at Fusion8.Cropper.MainCropForm.OnDoubleClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at Fusion8.Cropper.CropForm.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Coordinator
Dec 21, 2010 at 2:18 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Dec 21, 2010 at 2:30 PM

Thanks for the report.

a couple of uninitialized strings led to those crashes.  Fixed in v1.3.7.

 

Dec 21, 2010 at 10:01 PM

Thx, this seemd to have fixed it. Next time i post it in the issue tracker... my fault, sorry.

Coordinator
Dec 21, 2010 at 11:47 PM

Not a problem at all. Thanks for the report. I really should have tested that one a little more.

Lemme know of other things you notice.  I saw you had another one regarding the Avi plugin - I looked at that, too, but I think that is an issue in the Cropper core.  I'm investigating to see if I can fix that with a change in the plugin itself.  If not I'll raise a workitem on the Cropper Core.