Sign in Join

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

Mailing lists / lazarus / 2002-11

Some LCL questions

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

Hi,

I am digging in some LCL sources and I have some questions. Rather than sending the patches I have some questions first. (Maybe it doesn't need patching...)

In both TApplication.Notification and TApplication.ControlDestroyed FMainForm is set to nil. But only in TApplication.Notification Terminate is called. Why is FMainForm set to nill in two places? Why is Terminate only called in one of those places?

Canvas.Destroy has the following lines of code:
�if FLockCount  0 then
� � � DeleteCriticalSection(FLock);
But the critical section is created wether it is used or not.
I think it should look something like:
�if FLockCount  0 then
� � � LeaveCristalSection(FLock);
�if FLock0 then
� � � DeleteCriticalSection(FLock);

Vincent Snijders.

Reply by email