Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

IVF 11.1.067 with f90SQL Library

Peter_Skerlj
Beginner
513 Views

Hi,

I have been using CanaimaSoft's f90SQL library with IVF for a couple of years now to be able to read/write SQL data from my fortran code. I have just recently switched jobs and I am trying to get some old fortran code running on my new computer.

I get an error when trying to establish an ODBCconnection with the following subroutine call:

 

call f90SQLConnect(ConnHndl, 'ODBC_Name', 'Username', 'Password', RetCode)


The error when running theconsole applicationis:
forrtl: severe (170): Program Exception - stack overflow

And when I debug the program inMS Visual Studio, theerror is:
Debug Assertion Failed!
File: winsig.c Line 419
Expression: ("Invalid signal or error", 0)

I am using:
Win32 console application in IVF 11.1.067
Visual Studio 2008 Version 9.0.21022.8
MS .Net Framework Version 3.5 SP1
Windows 7 Professional 32-bit OS

The code worked fine in my previous job.

Does anyone have an idea what the problem is and how to fix it?

Thanks.

0 Kudos
3 Replies
Arjen_Markus
Honored Contributor II
513 Views
My first guess would be that this is due to different calling conventions.
The Canaima library is a rather old one and most probably uses the STDCALL convention.
IVF uses the C convention (if I remember the name correctly) by default.
Look in the compiler options - there is an option to change the calling convention.

Regards,

Arjen
0 Kudos
Peter_Skerlj
Beginner
513 Views
Hi Arjen,

Thanks for your suggestion. However, changing to theSTDCALL convention (/Gz) did not solve the problem. I actually gave me 11 unresolved externals symbol errors.

Thanks.

0 Kudos
Arjen_Markus
Honored Contributor II
513 Views
Hm, I know too little about the library to come up with further suggestions ...
(There was another thread a couple of weeks ago which related to SQL as well - maybe that will
bring you some ideas? You might try my interface to oDBC if all else fails - http://flibs.sf.net)

Regards,

Arjen
0 Kudos
Reply