LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why do I get Error 42 when I build a RT-exe with numbers in the Target file?

Solved!
Go to solution

ok, I will do a repair of my RT Installation. There seems to be something wrong with it.

 

Without changes I can also build an executable with it. But then I changed the name to only startup.rtexe, made a build (this worked), changed it back to startup1.rtexe, and the error 42 appeared again...

 

Thank you very much for your help so far.

0 Kudos
Message 11 of 21
(1,682 Views)
Your're welcome. And please post back with if it's not working, and also if it's working (what I hope it will).
0 Kudos
Message 12 of 21
(1,673 Views)

I repaired my RT Module, but I'm still getting the Error 42 as before.

 

Any ideas what else I can try?

0 Kudos
Message 13 of 21
(1,662 Views)

Could you try once to set the destination path of your build directly to C:\

 

 

Christian

0 Kudos
Message 14 of 21
(1,651 Views)

No this also doesn't work.

 

I also found out that startup is the only acceptable name for a Target filename. I can't rename it to something like application.rtexe, otherwise error 42 occurs again.

0 Kudos
Message 15 of 21
(1,639 Views)

I think I was not clear enough with my last suggestion.

In the build settings, please set the "Local destination path" under the Information Category to "C:\"

 

 

Christian

0 Kudos
Message 16 of 21
(1,634 Views)

Where you able to build it now with the changes suggested my by last post?

 

 

Christian

0 Kudos
Message 17 of 21
(1,613 Views)

sorry for the late reply, I was in vacation the last 3 weeks.

 

Building the RT exe under c:\ doesn't work for me. But I think this time the IT of our company blocked me from creating any files on c:\:

 

Fehler 8 ist bei Öffnen/Erstellen/Ersetzen einer Datei in RTBEP_Generate_Deploy_Instructions2.vi->AB_RTEXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller aufgetreten

 

Mögliche Ursachen:

LabVIEW:  Dateiberechtigungsfehler. Sie haben nicht die erforderlichen  Zugriffsrechte für die Datei.

C:\depinstr.bin

0 Kudos
Message 18 of 21
(1,519 Views)

C:\ is not necessary.

We just want you to specify a "short" build path, so the whole path should not have more then 99 characters.

Can you test this?

 

 

Christian

0 Kudos
Message 19 of 21
(1,514 Views)

I tested and it almost works.

 

I changed the path to something like C:\RTexe, and with this path I can build my RT executable with any name I like (with numbers, whitespace etc.).

 

But here is the caveat: I am not allowed to use startup.rtexe as my target filename. If I build my target as startup.rtexe (this works), I afterwards cannot change the target filename to something else. This always produces the error 42 in the build process (with any name other than startup.rtexe). 

 

A workaround to this problem is to then delete the complete folder C:\RTexe. Then I can again build my target with any name I like.

 

I hope someone can confirm this problem.

0 Kudos
Message 20 of 21
(1,484 Views)