Recent

Author Topic: Open Database Error while Step Over  (Read 221 times)

incendio

  • Jr. Member
  • **
  • Posts: 90
Open Database Error while Step Over
« on: June 17, 2019, 06:14:55 am »
Hi guys,

I am not sure if this is the right forum to post my message. Please move it to the right one if this is not the right place.

Here is the problem.

On Multithread programming, a called to TSQLConnector.Open while in Step Over Mode (F8 pressed) will raised an error

The file build/glibc-otsel5/glibc-2.27/elf/dl-error-skeleton.c was not found.

Without Step Over, app runs fine. Have tried with IBX component, raised the same error.

Without Multithread, this called in Step Over mode runs fine.

I am not sure, but in MultiThread, on project file there is a use of cthreads, may be this is the caused of the problem.

I tried this on Lazarus 2.0.2, in Linux Mint 19.1, and a connection to Firebird database.


Zvoni

  • Full Member
  • ***
  • Posts: 198
Re: Open Database Error while Step Over
« Reply #1 on: June 17, 2019, 08:59:14 am »
I'm more surprised, that it worked in single-thread.
The single-stepping onto the open-command of any TSQLConnection has always thrown that error to me.
I "solved" it (read: workaround) by setting a breakpoint directly after the open-command, and the line before the open-command i hit "run"
One System to rule them all, One IDE to find them,
One Code to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
People call me crazy, because i'm jumping out of perfectly fine aircrafts

incendio

  • Jr. Member
  • **
  • Posts: 90
Re: Open Database Error while Step Over
« Reply #2 on: June 17, 2019, 09:07:02 am »
Are you using Lazarus 2.0.2?

Last time I checked, on single thread, it worked fine
The code are very simple
Code: Pascal  [Select]
  1. TSQLConn.Open;
  2. Showmessage('ok');

Zvoni

  • Full Member
  • ***
  • Posts: 198
Re: Open Database Error while Step Over
« Reply #3 on: June 17, 2019, 10:01:36 am »
Yeah, LAZ202/FPC304
One System to rule them all, One IDE to find them,
One Code to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
People call me crazy, because i'm jumping out of perfectly fine aircrafts