Recent

Author Topic: [SOLVED] Is this supposed to work?  (Read 2276 times)

Hansvb

  • Sr. Member
  • ****
  • Posts: 397
[SOLVED] Is this supposed to work?
« on: July 29, 2021, 08:26:18 am »
Hi,

I Placed a TZConnection on a form. Then enter the database name, user name, password, protocol and Library location. Clicked in Connect and the connection works. That is as expected.
Then click on connect so that the connection stops and I removed the Library location. After that I clicked on connect again and there is an immediate connection. I expected an error message here because the location of the oci.dll is no longer known (the Library location location is empty).
Is this a bug or is it supposed to work like this?
« Last Edit: July 29, 2021, 02:46:52 pm by Hansvb »
OS Windows 10 - Lazarus 2.0.12

PascalDragon

  • Hero Member
  • *****
  • Posts: 3338
  • Compiler Developer
Re: Is this supposed to work?
« Reply #1 on: July 29, 2021, 08:56:33 am »
The library is already loaded into the process (be it the IDE or your application), so removing the library does not affect the running process.

Hansvb

  • Sr. Member
  • ****
  • Posts: 397
Re: Is this supposed to work?
« Reply #2 on: July 29, 2021, 02:46:41 pm »
ok, I was just curious.
Thanks
OS Windows 10 - Lazarus 2.0.12

 

TinyPortal © 2005-2018