Recent

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

incendio

  • Sr. Member
  • ****
  • Posts: 269
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

  • Hero Member
  • *****
  • Posts: 2319
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 Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

incendio

  • Sr. Member
  • ****
  • Posts: 269
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

  • Hero Member
  • *****
  • Posts: 2319
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 Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018