581 views
in GUI Development by
Hello!

I created new component and I copied to it the content of another component - then, when I save these errors appears:

[20.11.2017 11:16:33] Fatal error Screens : Can not create file '\\.\Com3'.
[20.11.2017 11:16:33] Fatal error Screens : The saving of the unit 'Screens' is failed.

1 Answer

+1 vote
by
 
Best answer

Hello,

are you storing the project on a network drive? If yes, Embedded Wizard expects the location to be mapped to a drive letter (e.g. E:). Please see Select the location.

If this is not the case, can you verify the attribute Directory of your Screens unit? Its value should not start with the double backslash \\ which indicates the network path.

Hope it solves the problem

Best regards

Paul Banach

by
Hi Paul,

Thank you for the answer.

I do not use a new drive, I am using the same drive I used till now.

As for the directory attribute of the screens it is .\   , so, I am still not sure what the problem is.
by

Hmm, ... I still don't understand where the locationn \\.\Com3 comes from? 

Please verify the location, where your project is actually stored. The complete path is displayed in the caption bar of Embedded Wizard window. It should start with a drive letter, for example:

Are there other error/warning messages preceding those you reported above?

Another question, is the attribute Split of your unit Screen set false?

Best regards

Paul Banach

by

I attached print screens.

I hope it will help..

by

Ok. Fascinating. I was able to reproduce your problem. It is related to the name Com3 and the Split attribute set to the value true.

In this case, Embedded Wizard stores all unit members as individual files. Accordingly, the component Com3 should be stored in the file Com3.ewui.

Bizarrely, the file names consisting of COM followed by a digit are reserved by Windows for devices (serial port I suppose). The consequence, Windows fails to create a file with name Com3.ewui because it treates it as a device.

Following would be the possible workarounds:

Workaround #1: Rename the component Com3 to e.g. Comp3.

Workaround #2: Set the attribute Split of the unit Screen to the value false.

Does it help you?

I took this problem on our to-do list so I hope to find a fix for it in one of our future releases.

Best regards

Paul Banach

by

Hi,

Thank you very much for your help and your patience.
I changed the name and it worked...
Best regards
Michal

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...