goga has asked for the wisdom of the Perl Monks concerning the following question:

Dear Fellow Monks,
Here is a new Monk Jr. asking for help :D

I have in the pursuit of the coveted DBD::Sybase compiled with Sybase OCS 15, on windows vista with msvc 8. I compiled and linked correctly with some fixes to the makefile. (I'd sure help any one with this if they want me to)

After installing when I launch perl and include DBD::Sybase, it fails with the error "Runtime error! program has tried to load C runtime library incorrectly"


Sol(n) Attempted:
1)Tried to create an manifest file as bellow

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1'
<manifestVersion='1.0'>
<dependency>

<dependentAssembly>
<assemblyIdentity type='win32'
<name='Microsoft.VC80.CRT' version='8.0.50727.762'
processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>
placed it along Sybase.dll in the installed area, simply it didn't work

2) Tried to embed the manifest with /MANIFEST /MANIFESTFILE: options for the linker in msvc. There are no errors with the linking, it took the manifest but still the same error persists

I am just inches away from the border to glory and pulled by my both legs by Mr. BILL

Any help would surely be appreciated very much. Thanks

  • Comment on Please help, need to fix the Window vista dll manifest issue

Replies are listed 'Best First'.
Re: Please help, need to fix the Window vista dll manifest issue
by BrowserUk (Patriarch) on Apr 03, 2008 at 23:09 UTC
    it fails with the error "Runtime error! program has tried to load C runtime library incorrectly"

    Where is that error being displayed and when? Because according to google the only occurance of that error on the internet, is the one in your post above scanned 21 minutes ago.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

        Not if you treat it as a complete error message.

        Ie. "Runtime error! program has tried to load C runtime library incorrectly"

        However, the Runtime error: R6034 has the text:

        An application has made an attempt to load the C runtime library incor +rectly.

        Which is more than subtly different. And the point is, that if you search for the actual error text, you only get 1880 hits. And less is definitely more in this case, because the first two hits are MSDN hits which do a pretty good job of explaining the problem.

        And the third not only explains in detail the background of what causes it and why, but also contains a one-line patch for ExtUtils\MM_Win32.pm that if applied, would make the problem "go away". Assuming that the require tool mt.exe is available.

        (BTW. How's oz? Wheyed down or a weighty problem? :)


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
Re: Please help, need to fix the Window vista dll manifest issue
by Anonymous Monk on Apr 04, 2008 at 04:04 UTC