Congratulation.... Lazarus 9.0.22 is already solve this problem thanks to developer.... Now I can connect to PostgreSQL server many time....
Darmawan Sugiarto <[EMAIL PROTECTED]> wrote: could not translate hostname "localhost" to address : Unknow host Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: Joost van der Sluis wrote: > On Thu, 2007-03-29 at 14:52 +0200, Bram Kuijvenhoven wrote: >> Darmawan Sugiarto wrote: >>> It's OK... now I know If I don't have this error if I compile my code in >>> first time... but the second, third, and soon I have this error... So I >>> restart Lazarus and my code work clearly... >>> If I run my exe (without lazarus) I don't have this error... >> Hmm, that's interesting. I also had problems with my (commandline) DB aware >> app when running it from Lazarus (Win XP, pressing F9 in Laz): it would not >> connect, but give me an exception instead. When starting it from Explorer or >> the command prompt, all was fine. > > Isn't that simply because the exception is caught in a try-finally > statement? Outside the debugger you don't notice that. > > It could be for example that if it fails finding libmysqlclient.so, it > tries mysqlclient.so ? (I don't know this for sure, but could the > problem be something like this?) No, after Lazarus breaked on an exception (GDB: break FPC_RAISEEXCEPTION), I pressed F9 again (i.e. Continue) until the application gave its own response: a dialog box with the errors mentioned in my post. Regards, Bram _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives --------------------------------- The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. --------------------------------- Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.