ActiveState Community

PerlApp throws a Visual C++ R6034 error

Posted by watts138 on 2009-06-03 20:35

PerlApp 7.3.0 (but same result with version 8)
Perl 5.8.9
DBD::Pg 2.10.0 for perl 5.8 (binary downloaded from PgFoundry)
msvcr80.dll version:8.0.50727.42

PerlApp command line:

perlapp --lib C:\Perl\site\SQ1\3.0 --norunlib --gui --verbose --warnings --force --info ProductName=BBreg3;ProductVersion=3112 --exe bbreg3.012.exe --perl C:\Perl\bin\perl.exe bbreg3.012.plx

PerlApp output:

PerlApp 7.3.0 build 287519 (perl 5.10.0)
Copyright (C) 1998-2008 ActiveState Software Inc. All rights reserved.
...

Can't load 'C:/Perl/site/lib/auto/DBD/Pg/Pg.dll' for module DBD::Pg: load_file:A dynamic link library (DLL) initialization routine failed at /DynaLoader.pm line 214.

I came across this before when I first installed Pg and the problem was solved by creating a perl.exe.manifest file containing:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.
+0">
<assemblyIdentity version="0.0.0.0" processorArchitecture="X86" name="
+Perl" type="win32" />

<description>Perl</description>
<dependency>
    <dependentAssembly>
      <assemblyIdentity 
          type="win32" 
          name="Microsoft.VC80.CRT" 
          version="8.0.50215.4631" 
          processorArchitecture="x86" 
          publicKeyToken="1fc8b3b9a1e18e3b">

      </assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>

My code runs without a problem within Komodo and from the command line.

I couldn't find anyone else with the same problem so I'm thinking I'm missing something obvious here. Any insights or pointers would be most welcome.

nsjithinsyam | Wed, 2009-07-15 22:50

Hi,

I got the same problem. I could connect to the database when I run the through command line.

But when I run the Perlapp to make the code to an exe, it shows a R6034 error. And when I hit OK for the exception, in the output window of PerlApp following error is displayed.

install_driver(Pg) failed: Can't load 'auto/DBD/Pg/Pg.dll' for module DBD::Pg: load_file:The specified module could not be found at /DynaLoader.pm line 214.
at perlapp line 632

Please advice

Thanks
Jithin~

nsjithinsyam | Mon, 2009-07-20 23:43

Hi,

Atlast I got a solution for this. We have to use the pure perl version of this module, DBD::PgPP.

Thanks
Jithin~

psmith_12345 | Wed, 2009-07-22 08:15

I'm having the same issue but don't want to use the Pure Perl solution as it seems to have several issues wiht performance. Has anyone had any luck solving this issue?

Thanks,
-Paul