TIBConnection cannot connect twice in design time
Original Reporter info from Mantis: zoran
-
Reporter name: Zoran Vučenović
Original Reporter info from Mantis: zoran
- Reporter name: Zoran Vučenović
Description:
With FPC 3.0rc2, when TIBConnection is put on the form and all properties needed to connect to a database are set, then:
First time setting Connected property to True in Object Inspector goes well. However, when Connected is set to False and then when I try to set it to True for the second time, I get an error:
IBConnection1 : DoInternalConnect :
-connection shutdown
Steps to reproduce:
Put an IBConnection on the form. Set all properties needed for connecting to Database ( Set Connected property to Frue in object inspector. Then, set Connected to False. Set connected again to True - then the Error is reported.
FPC 3.0.0RC2, Lazarus trunk, I tried on Linux Mint 64 bit (gtk2 ws) and on Win7 64 bit (32-bit Lazarus, win32 ws) - the same error happens.
Additional information:
I cannot reproduce this error in runtime - I put a button on the form which connects and disconnects IBConnection1 and no matter how many times I do it, there is no error. However, it always happens in design time, when connected is set in Object inspector for second time. That is why I classified this under Lazarus category, I am not sure if it should actually go to FPC.
I cannot reproduce it with FPC 2.6.4, but it always happen with FPC 3.0.0RC2.
So, if it is actually a FPC issue, then it is regresion and it should be corrected before the final release of FPC 3.0.
Mantis conversion info:
- Mantis ID: 29034
- OS: Widows and Linux
- Build: 50401
- Version: 1.5 (SVN)
- Target version: 1.5 (SVN)