pingtracer icon indicating copy to clipboard operation
pingtracer copied to clipboard

A generic error occurred in GDI+ on export

Open zolikonta opened this issue 9 months ago • 1 comments

Hi,

I get this error when selecting Export / Snapshot of graphs menu I have the 1.19.1.0 exe file in my desktop folder and run it from there. Where is it supposed to export the graphs to?

System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+. at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at PingTracer.MainForm.mi_snapshotGraphs_Click(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.Control.WmCommand(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

zolikonta avatar Mar 17 '25 19:03 zolikonta

Snapshots are supposed to save into the folder where PingTracer.exe resides. However your error message indicates that something is failing during the png writing. It might be a lack of file write permissions somehow. But if you are running it from your windows desktop or a subfolder of the desktop, then there shouldn't be such a permission problem. You could try running PingTracer as admin, and then if the snapshot is able to be saved that is a pretty strong indication that the problem was filesystem permissions.

bp2008 avatar Mar 17 '25 19:03 bp2008

Not sure what it was it worked the next day and ever since then. Thank you.

zolikonta avatar Mar 24 '25 18:03 zolikonta