Page 1 of 1
Erro: ZeosLib 8.0 Access violation AlmaLinux 8.6 Lazarus 2.2.6
Posted: 30.08.2024, 14:07
by automacaosamos
It works normally on Windows,
but when I compile for Linux when accessing the database I get the message: Access violation
What would be the solution?
Thanks.
Re: Erro: ZeosLib 8.0 Access violation AlmaLinux 8.6 Lazarus 2.2.6
Posted: 01.09.2024, 08:32
by marsupilami
Hello,
unfortunately my crystal ball is still in the workshop for repair. So, there are some questions:
- Which version of FPC do you use? AlmaLinux 8.6 is deprecated and Lazarus 2.2.6 is old too.
- Which database do you work with? PostgreSQL? MariaDB? Firebird? MS SQL Server? SQLIte? Something else?
- Which version of the database system do you use?
- What do you try to do when you get the access violation?
- Maybe you could share a sample project that shows the probelm.
Best regards,
Jan
Re: Erro: ZeosLib 8.0 Access violation AlmaLinux 8.6 Lazarus 2.2.6
Posted: 01.09.2024, 12:12
by aehimself
In my experience, access violations occur with Zeos in two occasions:
- Outdated driver and/or incorrect multithreaded usage. I'm looking at you,
Oracle...
- There is a bug in Zeos. Can happen, but as Zeos 8 runs rock solid in my applications for a looooong time now I'd say it's less likely.
As Jan already mentioned, no information was provided so we can not even guess where / why it happens.
A stack trace would be a nice place to start :)
Edit: two occasions excluding user errors*
Re: Erro: ZeosLib 8.0 Access violation AlmaLinux 8.6 Lazarus 2.2.6
Posted: 07.10.2024, 22:06
by automacaosamos
For testing I installed AlmaLinux 9.4, generated a code in Linux CrossCompile on Windows.
and I'm finding "Access Violation" with Lazarus 3.99, Firebird 3.0, ZeosLib 8.0 Putting the word 'interbase' in the protocol works on Windows. but it doesn't work on Linux.
Re: Erro: ZeosLib 8.0 Access violation AlmaLinux 8.6 Lazarus 2.2.6
Posted: 08.10.2024, 14:16
by marsupilami
What happens, if you compile your code on Linux? Do you get any stack trace?
Re: Erro: ZeosLib 8.0 Access violation AlmaLinux 8.6 Lazarus 2.2.6
Posted: 08.10.2024, 17:07
by automacaosamos
compilation is done normally, on Windows using the crossCompiler.
The error occurs at the time of execution, on Linux both setting the
'interbase' or 'firebird' protocol shows 'Access Violation' in the log
Re: Erro: ZeosLib 8.0 Access violation AlmaLinux 8.6 Lazarus 2.2.6
Posted: 09.10.2024, 15:19
by marsupilami
automacaosamos wrote: ↑08.10.2024, 17:07
compilation is done normally, on Windows using the crossCompiler.
Ok - in that case I will rephrase my request: Please use the native linux compiler and check what happens. If you still have a problem then, please provide a minimum working example that shows the problem.
Best regards,
Jan