Problem loading drawing - DirectoryNotFoundException
LYoung
2/27/2019 9:03 PM
|
---|
When loading a drawing, I am receiving the following error:
C# Code: System. |
Wout
3/1/2019 12:19 AM
|
---|
Can you post the code that causes this problem? Including file path please. I can't reproduce the problem.
- Wout
|
LYoung
3/1/2019 1:29 AM
|
---|
There's not much to post, but here it is;
The path is E:\Sandbox\DWGs\Draw1.DWG
C# Code: public DxfModel ReadFile( C# Code: System. |
Wout
3/1/2019 2:09 PM
|
---|
Ok, I've added an catch exception in the particular piece of code in version 4.0.38.152. Apparently it is some weird behavior in System.IO.Directory.GetFiles, even though the code before that checks that the directory exists. I think it has to do with directory aliases or network locations, can't really tell since I don't know the customer's environment.
Thanks for the report,
- Wout
|
LYoung
3/1/2019 4:13 PM
|
---|
I updated to 4.0.38.141 and I am still receiving the same error.
C# Code: System. C# Code: System. |
LYoung
3/1/2019 4:35 PM
|
---|
Loading the file I sent you took 16 minutes on another machine, and it finally failed with;
C# Code: System. |
Wout
3/1/2019 5:34 PM
|
---|
Hadn't spotted the additional exception, I've added a catch for that one too. I've also changed to not searching sub directories any more when searching fonts in the current directory. Was this a large directory tree where you had the long loading time? Maybe it was on a network too? Changes in version 4.0.38.154.
- Wout
|
LYoung
3/1/2019 6:35 PM
|
---|
Is .154 up?
It wasn't large, no. It doesn't have any subdirectories.
|
Wout
3/1/2019 9:26 PM
|
---|
Yes, it's online. The download is now in Your resources in your profile by the way.
Odd, then I don't understand why it's slow.
- Wout
|
LYoung
3/1/2019 9:39 PM
|
---|
Edit: Saw your edit and I see the correct version. Thanks.
|