- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page