Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception in RenderForm.GetBackground() #8

Open
DavidRawling opened this issue Apr 8, 2015 · 1 comment
Open

Unhandled Exception in RenderForm.GetBackground() #8

DavidRawling opened this issue Apr 8, 2015 · 1 comment

Comments

@DavidRawling
Copy link
Collaborator

Running from a scheduled task. Exception "Parameter is not valid" .

Loading with command "WPInfo /LoadFile=User.wpi /Silent". References the User folder (relative) containing a single image.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at Ventajou.WPInfo.RenderForm.GetBackground()
at Ventajou.WPInfo.RenderForm.FormLoaded(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(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)

@DavidRawling
Copy link
Collaborator Author

Does not seem to happen if the resolution is specified on the command line (but even then it did not correctly process - the resulting image is not the resolution specified)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant