Error XS7038

This forum is meant for questions and discussions about the X# language and tools
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Error XS7038

Post by Juraj »

Hi All,

I copied the Visual Studio project from the damaged hard disk. VS2017 opens the project correctly, but returns the error when compiling
Error XS7038 Failed to emit module 'MOWPF'. MOWPF XSC.

Juraj
User avatar
wriedmann
Posts: 3644
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Error XS7038

Post by wriedmann »

Hi Juraj,

do you have tried to execute first a "Clean" process in the project?

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Error XS7038

Post by Juraj »

Hi Wolfgang,

yes, I execute "Clear Solution" and "Clean <projectName>, but it did not help

Juraj
User avatar
wriedmann
Posts: 3644
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Error XS7038

Post by wriedmann »

Hi Juraj,

MOWPF is the name of your executable?
Maybe you have specified a path that does not exists on the new disk?
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Error XS7038

Post by Juraj »

Hi Wolfgang

yes, MOWPF is the name of executable. In "Properties" MOWPF is path OK

Juraj
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Error XS7038

Post by Chris »

There are a couple compiler bugs causing this, sometimes it has to do with pointers. Please try enabling the "Allow Unsafe code" option in your project settings, does this make a difference?

If not, can you zip and send me the solution to have a look?I
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Error XS7038

Post by robert »

Juraj,
Does the file already exist in the OBJ or BIN folder ?
You write that the hard disk was damaged. When you copied the folder over did you make sure that you have enough rights to write to the copy of the folder structure on your machine ?

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Error XS7038

Post by Juraj »

Hi Chris

enabling the "Allow Unsafe code" option it did not help. I don't have your e-mail address.

Juraj
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Error XS7038

Post by Chris »

Juraj,
hsc wrote:Hi Chris

enabling the "Allow Unsafe code" option it did not help. I don't have your e-mail address.

Juraj
It's in my signature below :)

Did you also check Robert's advice?
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Error XS7038

Post by Chris »

For anybody following this, the problem turned out to be a small typo in the code that the compiler did not catch as an error and then failed to report a correct error message. Should be easy for Robert to fix for the next build.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
Post Reply