NC Editor crashes on long files (27MB)

If you think you've found a bug post it here.

NC Editor crashes on long files (27MB)

Postby Ivan Ionov » Thu Sep 29, 2016 9:26 am

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.
Ivan Ionov
 
Posts: 15
Joined: Tue Sep 20, 2016 9:33 pm

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

Postby cncdrive » Thu Sep 29, 2016 11:51 am

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?!
cncdrive
Site Admin
 
Posts: 4985
Joined: Tue Aug 12, 2014 11:17 pm

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

Postby Ivan Ionov » Thu Sep 29, 2016 10:10 pm

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 )
Ivan Ionov
 
Posts: 15
Joined: Tue Sep 20, 2016 9:33 pm


Return to Report a bug

Who is online

Users browsing this forum: No registered users and 11 guests

cron