Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2022-02

Small problem with a application that uses a Firebird database

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

nibbikfrans

Hi,

I'm using Lazarus 2.0.10 on Windows10. I'm working on an application that uses a Firebird database and it's going very well. In the development version I use a Debug screen.
But now I have a situation that I can't explain. When I start the application and I open the database it al goes well. Whether I make changes or not, the application closes immidiately when I hit the close button. The Debug screen is also closed immidiately. When I can't open the database because it's in use by a different application (FlameRobin), I generate an error message. And now when I close the application the main form is destroyed immidiately but the Debug screen is still visible for about 2 seconds. The application is also visible that long in the taskmanager. The same happens when I have compiled a ready version without the Debug screen, the application stays visible in the taskmanager for about 2 seconds.
I've been searching for days to seek an explantion but I can't find it. I've made a very small testapplication with the intent of creating an item on the Lazarus Forum but that application doens't show this effect and is therefor useless. But I still can't figure out why. I don't expect anything but if one of you can explain this or show me another search direction I would be gratefull.

mvg Frans van Leeuwen M 06-51695390 -- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com

Reply by email

Лев Бронштейн
to nibbikfrans

Hi

What is your question? What is confusing you? What error do you get when the database is connected to FlameRobin? What version of FB are you using? What access components do you use to connect to the database?

nibbikfrans via lazarus 12 ??????? 2022 ?.
4:39:11 ?? ???????:

Show quoted text 38 lines
Hi, I'm using Lazarus 2.0.10 on Windows10. I'm working on an application that uses a Firebird database and it's going very well. In the development version I use a Debug screen. But now I have a situation that I can't explain. When I start the application and I open the database it al goes well. Whether I make changes or not, the application closes immidiately when I hit the close button. The Debug screen is also closed immidiately. When I can't open the database because it's in use by a different application (FlameRobin), I generate an error message. And now when I close the application the main form is destroyed immidiately but the Debug screen is still visible for about 2 seconds. The application is also visible that long in the taskmanager. The same happens when I have compiled a ready version without the Debug screen, the application stays visible in the taskmanager for about 2 seconds. I've been searching for days to seek an explantion but I can't find it. I've made a very small testapplication with the intent of creating an item on the Lazarus Forum but that application doens't show this effect and is therefor useless. But I still can't figure out why. I don't expect anything but if one of you can explain this or show me another search direction I would be gratefull. -- mvg Frans van Leeuwen M 06-51695390 -- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

Reply by email

Mattias Gaertner
to nibbikfrans: I'm using Lazarus 2.0.10 on Windows10. I'm working on an application that uses a Firebird…
Show quoted text 6 lines
[...] When I can't open the database because it's in use by a different application (FlameRobin), I generate an error message. And now when I close the application the main form is destroyed immidiately but the Debug screen is still visible for about 2 seconds. The application is also visible that long in the taskmanager.

Sounds as if some finalization takes 2 seconds.
Maybe a running thread?

[...]

Mattias

Reply by email

nibbikfrans
to Mattias Gaertner

Hi Mattias,

Yes, 1 running thread for about 2 seconds, source = :00000000, line = 0. So I have no idea what and where to look.

mvg
Frans van Leeuwen
M 06-51695390

Op 12-2-2022 om 21:00 schreef Mattias Gaertner via lazarus:

Show quoted text 15 lines
On Sat, 12 Feb 2022 14:38:55 +0100 nibbikfrans via lazarus wrote: > [...] > When I can't open the database because it's in use by a different > application (FlameRobin), I generate an error message. And now when I > close the application the main form is destroyed immidiately but the > Debug screen is still visible for about 2 seconds. The application is > also visible that long in the taskmanager. Sounds as if some finalization takes 2 seconds. Maybe a running thread? > [...] Mattias
Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com

Reply by email