Subject | RE: [IBO] Error in IB_Schema.pas |
---|---|
Author | Calin Pirtea |
Post date | 2010-09-13T03:34:02Z |
Hi Salvatore,
GetBDEAliasInfo is only invoked if your connection is configured with an AliasName which means you require BDE alias info. Clear AliasName properties in your app and there will be no problem left.
If however someone does need BDE, it is better in my opinion to get an error from GetBDEAliasInfo so the developer knows that BDE alias was not found.
Cheers,
Calin Pirtea
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf Of Salvatore Besso
Sent: Tuesday, 17 August 2010 6:54 PM
To: Lista IB Objects
Subject: [IBO] Error in IB_Schema.pas
hello all,
I catched an error in IB_Schema.pas (IBO 4.9.10). I have noticed it because I have just reinstalled Windows on my machine and I haven't installed Delphi yet.
I have run a small application that doesn't use BDE at all. Instead it uses a Firebird database located on a remote server in my local network. The error trace carries me into IB_Schema.pas in procedure GetBDEAliasInfo at line 236 where you are trying to open BDE configuration file that, of course, doesn't exist, since I haven't installed Delphi yet.
Look now at function GetIDAPI that, in this case, returns an empty string; you are now trying to open a stream with an empty file name at line 236. In my opinion you should call GetIDAPI first (before trying to open the BDE configuration file at line 236) and, if GetIDAPI returns an empty string, skip the whole procedure jumping to exit, but I could be wrong, since I don't know if you need the information contained in that file if BDE is not used at all.
Regards
Salvatore
GetBDEAliasInfo is only invoked if your connection is configured with an AliasName which means you require BDE alias info. Clear AliasName properties in your app and there will be no problem left.
If however someone does need BDE, it is better in my opinion to get an error from GetBDEAliasInfo so the developer knows that BDE alias was not found.
Cheers,
Calin Pirtea
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf Of Salvatore Besso
Sent: Tuesday, 17 August 2010 6:54 PM
To: Lista IB Objects
Subject: [IBO] Error in IB_Schema.pas
hello all,
I catched an error in IB_Schema.pas (IBO 4.9.10). I have noticed it because I have just reinstalled Windows on my machine and I haven't installed Delphi yet.
I have run a small application that doesn't use BDE at all. Instead it uses a Firebird database located on a remote server in my local network. The error trace carries me into IB_Schema.pas in procedure GetBDEAliasInfo at line 236 where you are trying to open BDE configuration file that, of course, doesn't exist, since I haven't installed Delphi yet.
Look now at function GetIDAPI that, in this case, returns an empty string; you are now trying to open a stream with an empty file name at line 236. In my opinion you should call GetIDAPI first (before trying to open the BDE configuration file at line 236) and, if GetIDAPI returns an empty string, skip the whole procedure jumping to exit, but I could be wrong, since I don't know if you need the information contained in that file if BDE is not used at all.
Regards
Salvatore