pashagolub / postgresdac

Delphi/C++Builder direct access components for PostgreSQL (and derivatives)
MIT License
19 stars 12 forks source link

system error code 193 %1 is not a valid win32 application #10

Closed briantes closed 11 months ago

briantes commented 1 year ago

I have downloaded and install components on Delphi RAD Studio 2010. All worked good. But when I try to connect to a Postgres database, I always get this error: system error code 193 %1 is not a valid win32 application. I have put all my files in a folder without white spaces and short paths. But nothing works. In design time, if I try to set "connected" to true, I get this error. I have tried to connect in runtime, but the same error. I don't know what should I do to solve the problem.

pashagolub commented 12 months ago

Hello.

Do you get this error from RAD Studio? Or when you try to run built application?

Would you please make sure libraries from Deploy folder are accessible directly or via PATH envvar.

briantes commented 11 months ago

I get this error in RAD Studio 2010 when I try to build the application.

pashagolub commented 11 months ago

Would you please make sure libraries from Deploy folder are accessible directly or via PATH envvar

briantes commented 11 months ago

Yes, they are. Prior to use your components. I tried to connect to Postgres with Zeos lib components, but It didn't work due to libpq.dll version problems. Then I found your components and I tried with they, but I couldn't run my app with your components, due to this error. Then I tried again with Zeos Lib but using your libpq.dll, and It works.

briantes commented 11 months ago

More info. On design time, I can connect to the database and open tables with TPSQLTable. When I try to run the app, I get this error.

pashagolub commented 11 months ago

Yes, that sounds exactly like a dll mess.

Try to put all dlls from deploy folder right near the application binary. Then it should use them by default

briantes commented 11 months ago

Yes. It works now. Thank for your help.