load_file:%1 is not a valid Win32 application

Posted by boonflies@gmail.com on 2017-06-07 22:56

I get the following error,

Can't load 'C:\Program Files (x86)\Rational\TestRealTime/lib/perl/auto/TestRTUtil/TestRTUtil.dll' for module TestRTUtil: load_file:%1 is not a valid Win32 application at C:/Perl64/lib/DynaLoader.pm line 227.
at C:\Program Files (x86)\Rational\TestRealTime/lib/scripts//Translate.pl line
25
Compilation failed in require at C:\Program Files (x86)\Rational\TestRealTime/li
b/scripts//Translate.pl line 25.
BEGIN failed--compilation aborted at C:\Program Files (x86)\Rational\TestRealTim
e/lib/scripts//Translate.pl line 25.

while trying to run, "Rational Test RealTime" software.

I have a 64bit PC with 64bit perl installed.

I have another PC with the same configuration where the software is working fine. I couldn't find a reason for this.

grahams
ActiveState Staff
Mon, 2017-06-12 09:28

You're attempting to load a 32-bit dll into a 64-bit Perl at the point you get that error. That's not allowed by Windows.

On your other system, you probably have a 32-bit Perl. Or, you might have 64-bit Rational.