FlexPedant SDK Problem with load XML File

Hello,
i try to open and read an XML-File from the hardrive. This Folder is the system-home directory. but unfortunatly it is not working. the program detect an error.
that is my programcode:

XmlDocument Doc = new XmlDocument();
try
{
if (FileSys.Exists(FilePath))
{
Doc.Load(FilePath); //here is the fould!

the string FilePath is ok. the reason why the system chrashs i do not know.
does anybody know what the mistake is?
thanks for the help. :clap:

sorry. i have forgotten a importen thing. the complete programm is runing under a virtuel system. on a real robot the program have this fould.
programming with.
framework 2.0
tested with virtuel system 5.13. Ok!
tested with a real system 5.14. Not Ok!

Check if the XML is being used by anyother process..
or
catch the exception and see the exception message.you could get more details about the flaw.
good luck:wink: