Jump to content

LoadXML time issues


photo

Recommended Posts

Posted

Hi,

When I loadXML from the network,

such as 

    int i = xml->load("//DESKTOP-H8ULHOU/SharedFolder/InstructorInterfaceData.xml");
        if (i == 0)
        {
              Log::error("instructor can't open \"%s\" file\n", "InstructorInterfaceData");
               return;
            }
 

if I cannot find the xml file, the code will always stop and continuously execute the loading process, as a result the program stops.

I don't know why , cause It worked previously and if there is no such a file, it will return 0 and continue.

 But now ,if it cannot find the network computer, there is no response for the program and everything is stuck ,including the mouse cursor.

Have you ever met this problem before?

Posted

Hi Lukas,

Which SDK version are you currently using? I've tried to reproduce this behavior with latest (2.7.2.1) and there is no hangs at all. If file is not present load() will return 0.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Hi, silent

My current version is 2.7.1

even I used 2.7.2.1, it still has the same problem. 

The problem happened suddenly  several weeks ago, when I updated the graphic driver and restarted the computer ,then it suddenly went wrong and since then it always have the problem.

Even I reinstalled the unigine 2.7.1, it didn't work.

I don't know what caused the problem.

The video illustrated the problem, when the program runs ,the program got stuck and the fps was stuck soon.

 

Posted

Hi Lukas,

I've tried on serveral PCs and none of them have this behavior (Windows 7/10). As a workaround I guess you can use some system built-in functions to verify if file is really exists and after that do the load.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...