Git Product home page Git Product logo

embroideryreader's People

Contributors

njcrawford avatar virtualstaticvoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embroideryreader's Issues

System.ArgumentException: Parameter is not valid.

This nice program worked flawlessly for a few weeks on my moms computer(Win 7 x64) but suddenly it throws an error on startup (e.g. double clicking a file to open it). I can click continue on the error dialog and then manually use 'File > open' to view a file but that's not so convenient anymore.

Here's the error, maybe you know what to do with this:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
  at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
  at embroideryReader.frmMain.updateDesignImage()
  at embroideryReader.frmMain.openFile(String filename)
  at embroideryReader.frmMain.Form1_Load(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.Form.WndProc(Message& m)
  at embroideryReader.frmMain.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
   Assembly Version: 4.0.0.0
   Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
   CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
embroideryReader
   Assembly Version: 2.0.0.0
   Win32 Version: 2.0.0.0
   CodeBase: file:///C:/Program%20Files%20(x86)/NJCrawford%20Software/Embroidery%20Reader/embroideryReader.exe
----------------------------------------
System.Windows.Forms
   Assembly Version: 4.0.0.0
   Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
   CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
   Assembly Version: 4.0.0.0
   Win32 Version: 4.0.30319.34270 built by: FX452RTMGDR
   CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
   Assembly Version: 4.0.0.0
   Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
   CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
IniFile
   Assembly Version: 2.2.0.0
   Win32 Version: 2.2.0.0
   CodeBase: file:///C:/Program%20Files%20(x86)/NJCrawford%20Software/Embroidery%20Reader/IniFile.DLL
----------------------------------------
System.Configuration
   Assembly Version: 4.0.0.0
   Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
   CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
   Assembly Version: 4.0.0.0
   Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
   CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
PesFile
   Assembly Version: 1.2.0.0
   Win32 Version: 1.2.0.0
   CodeBase: file:///C:/Program%20Files%20(x86)/NJCrawford%20Software/Embroidery%20Reader/PesFile.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
   <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

ArgumentException in ScaleTransform() when printing

From automated error report:
Time: 2016-03-27 12:52:47
Program: embroideryReader, Version=2.1.0.0, Culture=neutral,
PublicKeyToken=null
Program location: C:\Program Files\NJCrawford Software\Embroidery
Reader\embroideryReader.exe
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 (Note: this is Windows 7)
OS Culture: en-US
Framework: 4.0.30319.42000

Error:
System.ArgumentException (Parameter is not valid.)
at System.Drawing.Graphics.ScaleTransform(Single sx, Single sy,
MatrixOrder order)
at System.Drawing.Graphics.ScaleTransform(Single sx, Single sy)
at embroideryReader.frmMain.printDocument1_PrintPage(Object sender,
PrintPageEventArgs e)
at
System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs
e)
at
System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs
e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument
document)
at System.Drawing.Printing.PrintController.Print(PrintDocument
document)
at System.Drawing.Printing.PrintDocument.Print()
at embroideryReader.frmMain.printToolStripMenuItem_Click(Object
sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key,
EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs
e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs
e, ToolStripItemEventType met)
at System.Windows.Forms.Too
(Report clipped)

System.ArgumentException in ReadChar()

Automated error report:

Time: 2016-04-11 15:02:58
Program: embroideryReader, Version=2.1.0.0, Culture=neutral,
PublicKeyToken=null
Program location: C:\Program Files (x86)\NJCrawford
Software\Embroidery Reader\embroideryReader.exe
OS: Microsoft Windows NT 6.2.9200.0 (Probably Windows 10, based on user agent)
OS Culture: en-US
Framework: 4.0.30319.42000

Error:
System.ArgumentException (The output char buffer is too small to
contain the decoded characters, encoding 'Unicode (UTF-8)' fallback
'System.Text.DecoderReplacementFallback'.
Parameter name: chars)
at System.Text.Encoding.ThrowCharsOverflow()
at System.Text.Encoding.ThrowCharsOverflow(DecoderNLS decoder,
Boolean nothingDecoded)
at System.Text.UTF8Encoding.GetChars(Byte* bytes, Int32 byteCount,
Char* chars, Int32 charCount, DecoderNLS baseDecoder)
at System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex,
Int32 byteCount, Char[] chars, Int32 charIndex, Boolean flush)
at System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex,
Int32 byteCount, Char[] chars, Int32 charIndex)
at System.IO.BinaryReader.InternalReadOneChar()
at System.IO.BinaryReader.ReadChar()
at PesFile.PesFile.OpenFile(String filename)
at embroideryReader.frmMain.openFile(String filename)
at embroideryReader.frmMain.openToolStripMenuItem_Click(Object
sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key,
EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.On
(Report clipped)

Add ability to generate design thumbnails in Windows Explorer

The most common question I get through all channels is "does it show thumbnails in the folder?", which admittedly would be a nice feature to add.

I'm creating this issue to track how many requests I get for this feature, and gather together any bits of helpful code or documentation related to Windows shell extensions.

So far I have a total of 8 direct or indirect requests for a thumbnail feature that I can find.

These are the resources that have been sent to me or found on my own to date: (some links are nearly 10 years old, so they may not work any more)
http://www.codeproject.com/KB/shell/shellextguideindex.aspx
http://www.codeproject.com/KB/shell/thumbextract.aspx
http://www.eggheadcafe.com/software/aspnet/32011622/thumbnail-extractor-shell.aspx

The required COM object probably needs to implement ExtractImage2, and according to one email I received, the GUID for the shell's thumbnail extractor is {BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}. (That email from 12/23/08 also includes an example application for shell icon integration and an installer that sets up the proper registry entries for either Vista or XP - need to extract that info and add it here)

ArgumentException in designToBitmap() when printing

From automated error report:
Time: 2016-04-02 11:03:27
Program: embroideryReader, Version=2.1.0.0, Culture=neutral,
PublicKeyToken=null
Program location: C:\Program Files (x86)\NJCrawford
Software\Embroidery Reader\embroideryReader.exe
OS: Microsoft Windows NT 6.2.9200.0 (Note: this is Windows 8, possibly 8.1)
OS Culture: en-US
Framework: 4.0.30319.42000

Error:
System.ArgumentException (Parameter is not valid.)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat
format)
at PesFile.PesFile.designToBitmap(Single threadThickness, Boolean
filterUglyStitches, Double filterUglyStitchesThreshold, Single scale)
at embroideryReader.frmMain.printDocument1_PrintPage(Object sender,
PrintPageEventArgs e)
at System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at embroideryReader.frmMain.printToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs
e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs
mea)
at Sy
(Report clipped)

Add a batch image generation tool

I've received a request to make a tool to batch generate thumbnail images from a bunch of .PES files, and that seems like something that would be useful.

Some features I can see being useful:

  • Option to generate images as thumbnails (ie, scaled to a set size) or full size
  • Option to select which image file format to use as output
  • Option to generate design debug output in addition to, or instead of, images
  • Use settings file from Embroidery Reader to determine render settings
  • Option to work recursively through a folder tree

Print scale is too large on some printers

Printed designs are much too large on the page. Test design saved to a 1252x1376 .png, but only printed the upper left quarter (approximately) of the design.
This was observed on an HP p2015dn laser printer.

Translations are not loaded some times

Occasionally the translation files aren't loaded and instead the translation placeholders are displayed instead. I'm opening this issue so I remember to take a closer look and work on it later.

Add file name to printed image

I've had several requests to be able to print the file name along with the image.

I'm thinking this should work similar to how some text editors will print the file name or some web browsers will print the URL along with the page.

Trying to run from Windows Installer directory

According to automated error reports, it appears that Embroidery Reader tries to run from C:\Windows\Installer{GUID}\embroideryReader.exe instead of the correct program files location. Currently the only OS that this seems to happen on is Windows 8.

From investigating other folders under C:\Windows\Installer, it appears that it keeps a copy of any icon files in this folder.

Possible change to help avoid this issue in the future: change Wix installer to use a .ico file for the icon instead of the .exe.

Add option to scale designs when displaying them

Add an option to change the scale of a design when displaying it. (10%, 20%... 90%, 100%) Ideally, a "fit-to-window" option or something like that would be nice as well. It may be helpful to also add a configuration option to automatically load designs scaled with fit-to-window.

SmartScreen filter blocks downloads of Embroidery Reader MSI files

I've observed on several occasions that the SmartScreen filter in Windows 10 (might also be in Windows 8) blocks downloads of Embroidery Reader MSI files.

I suspect that signing the installer and/or executable files might keep it from being blocked. Need to do more research on SmartScreen and find out what triggers it to block a download.

Crash when opening certain files

I'm not sure what's causing this yet, but I've now had several automated reports of a crash when opening a file. The most recent one is below.

Program: embroideryReader, Version=2.2.3.0, Culture=neutral,
PublicKeyToken=null
Program location: C:\Program Files (x86)\NJCrawford
Software\Embroidery Reader\embroideryReader.exe
OS: Windows 10 Home release 1703 (6.3 build 15063) (x64)
OS Culture: en-US
Framework: 4.0.30319.42000 (x64)

Error:
System.ArgumentOutOfRangeException (Index was out of range. Must be
non-negative and less than the size of the collection.
Parameter name: index)
at
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument
argument, ExceptionResource resource)
at PesFile.PesFile.OpenFile(String filename)
at embroideryReader.frmMain.openFile(String filename)
at embroideryReader.frmMain.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
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.Form.WmShowWindow(Message& m)
at embroideryReader.frmMain.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Gibberish images are displayed on some PCs

Some PCs seem to display gibberish when any file is loaded in version 2.0+, where they apparently worked just fine in 1.5.1.

So far, I'm have aware of 2 cases, one is Windows 8.1 with Norton AV installed, the other is Windows XP with AVG Free installed.

gibberish and crash

gibberish
gibberish2

Crash when saving settings

I've never seen this issue myself, but I've received several crash reports showing almost the same stack trace.

Time: 2016-12-04 13:20:26
Program: embroideryReader, Version=2.2.3.0, Culture=neutral,
PublicKeyToken=null
Program location: C:\Program Files\NJCrawford Software\Embroidery
Reader\embroideryReader.exe
OS: Windows Vista (TM) Home Premium Service Pack 2 (6.0 build 6002)
(x86)
OS Culture: en-US
Framework: 4.0.30319.34209 (x86)

Error:
System.IO.IOException (The process cannot access the file
'C:\Users[username]\AppData\Local\NJCrawford Software\Embroidery
Reader\embroideryreader.ini' because it is being used by another
process.)
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String
destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName,
Boolean overwrite)
at NJCrawford.IniFile.save()
at embroideryReader.frmMain.Form1_FormClosing(Object sender,
FormClosingEventArgs e)
at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at embroideryReader.frmMain.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)

Add support for other languages

Add support for loading strings from a text file, to allow translations to other languages.

The initial English and Italian string files are done. The next step will be to rework all code that displays strings on the screen. Strings that are not displayed on the screen, or that are only used for debugging purposes, do not need to be translated.

Installer sometimes leaves old versions behind after upgrade

A user has reported that multiple versions show up in Programs and Features after upgrading to beta 2.2.1. It appears that the MajorUpgrade element in the installer is not working quite as intended. Need to figure out a way to reproduce this, since it seems to work correctly on my PC.

Add Mac OSX port

I've several people contact me about issues with Needleworks on Mac, but I don't know much about Needleworks or Mac. It may be worthwhile to develop a port of Embroidery Reader for Mac OSX.

InvalidPrinterException (No printers are installed.) in print preview menu

From automated error report:

Time: 2016-04-12 15:28:38
Program: embroideryReader, Version=2.1.0.0, Culture=neutral,
PublicKeyToken=null
Program location: C:\Program Files (x86)\NJCrawford
Software\Embroidery Reader\embroideryReader.exe
OS: Microsoft Windows NT 6.2.9200.0 (Probably Windows 10 based on user agent)
OS Culture: en-US
Framework: 4.0.30319.42000

Error:
System.Drawing.Printing.InvalidPrinterException (No printers are
installed.)
at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key,
EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs
e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs
mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.