 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Klaus Friese Guest
|
Posted: Wed Dec 17, 2003 12:57 pm Post subject: Opening TDatabase ODBC connecten doesn't work on WindowsNT 4 |
|
|
Hello,
i'm working on an application that uses a mySQL Database and
everything is fine on WindowsXP and Win98. But on Windows NT4 i have
an 'access violation' when i set the TDatabase.Connected to true.
I'm using Delphi 7 and MyODBC 3.51.
var
db : TDatabase;
begin
db := TDatabase.Create( nil );
db.DatabaseName := DSN; // name of ODBC DSN, the DSN is working.
db.LoginPrompt := false;
db.Params.Add( 'User Name=' + user );
db.Params.Add( 'PASSWORT=' + pwd );
db.AliasName := DSN;
db.Connected := true; // <-- Crash with 'access violation'
end;
I've searched in the usenet but i can't find an answer - any ideas?
thanks
Klaus
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|