Page 1 of 1

NC Editor crashes on long files (27MB)

PostPosted: Thu Sep 29, 2016 9:26 am
by Ivan Ionov
Hello,

UCCNC works fine with long files, but when I try to press Edit button (to remove manually some lines from NC header), the software crashes.

After crash and restart the software lost 2 things -
1. machine coordinates are set to zero (annoying but not very critical, I can restore it moving to home switches)
2. work offsets are lost after crash - that's very bad, because even after homing I can't continue my work, this was a finishing toolpath after 3 hours roughing, so I had to realign somehow and loose accuracy.

Re: NC Editor crashes on long files (27MB)

PostPosted: Thu Sep 29, 2016 11:51 am
by cncdrive
Could you copy the Exception details please?
I guess it is an out of memory error as the file is probably too large to be loaded into the Richtextbox?!

Re: NC Editor crashes on long files (27MB)

PostPosted: Thu Sep 29, 2016 10:10 pm
by Ivan Ionov
Here it is -

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
at System.Text.StringBuilder.Append(Char[] value, Int32 startIndex, Int32 charCount)
at System.IO.StreamReader.ReadToEnd()
at UCCNC.Notepad.Notepad_Load(Object , EventArgs )