Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

System.IO.EndOfStreamException

$
0
0
Hi fellow engineers,

I have a function using XML handling in NAV 2013R2:


XMLResult.Save(FileName);
TempFile.OPEN(FileName,TEXTENCODING::UTF8);
TempFile.CREATEINSTREAM(InStream);
FirstRead := TRUE;
WHILE NOT InStream.EOS DO BEGIN
InStream.READTEXT(Buffer);
IF FirstRead THEN BEGIN
IF COPYSTR(Buffer,1,1) <> '<' THEN BEGIN
Buffer := COPYSTR(Buffer,(STRPOS(Buffer,'<')));
END;
END;
XMLText.ADDTEXT(Buffer);
FirstRead := FALSE;
END;

TempFile.CLOSE;


This works fine, but at one specific customer the RTC crashes when running this function with a System.IO.EndOfStreamException
Does anyone know this error and a possible solution?
I attached a file with some stack tracing.


With kind regards,

Erik Heirbaut

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>