I'm working on a large fortran windows program with DVF 6.6a. I'm doing a simple call via ODBC to a microsoft acces 97 database. Normally without any problems, exept when I first - befor the connecting to the database - call he common dialog getopenfilename.
Again: when I call the api-function "SQLDriverConnect" befor I make a call to "GetOpenFilename" everything works fine but not vice versa (the program hangs). Even when I place the call to GetOpenFilename as the first statement in WinMain and immediately after that the call to "SQLDriverConnect" the program hangs (not when I do this vice versa). Probably the problem has something to do with the extra thread started - and terminated - by getopenfilename but I don't know this for sure.
I tried to break this down to small windows application but did not observe the problem there.
Has anyone an idea how to debug this or what could be going wrong?