in reply to Re: Strawberry Perl 64bit on Win7 crashes on DBI-function
in thread Strawberry Perl 64bit on Win7 crashes on DBI-function

In the end the Script is supposed to be run by users, who want so submit a SQL-Query to a DB2-Database. These users don't know any perl. So i want to give a detailed error massage, if the desired DSN is actually not configured (not existing) on the given machine. Which is why i want to determine the known ODBC-datasources at some point. And it was working nicely on perl 5.8.

  • Comment on Re^2: Strawberry Perl 64bit on Win7 crashes on DBI-function

Replies are listed 'Best First'.
Re^3: Strawberry Perl 64bit on Win7 crashes on DBI-function
by Corion (Patriarch) on Apr 22, 2014 at 11:55 UTC

    Do DBI and DBD::ODBC work otherwise?

    If DBI and/or DBD::ODBC also fail with other function calls, my guess is that you somehow mixed 32-bit and 64-bit DLLs from the old and the new installation.

    Personally, I would look at avoiding ODBC datasources and instead use the appropriate connection string. Many of these connection strings can be found via http://connectionstrings.com.

      This bit my @driver_names = DBI->available_drivers; works for example.

      And the actual DB-connection and basically what the whole script is supposed to do works. Just this one function call from DBI-package crashes. And in such a strange way. Same thing happens on two different machines, although running basically the same software-setup.

      I'll have a look into that link.