[Lazarus] IDE CoolBar issue

Ondrej Pokorny lazarus at kluug.net
Wed Sep 9 14:20:09 CEST 2015


On 09.09.2015 13:01, Juha Manninen wrote:
> On Wed, Sep 9, 2015 at 1:30 PM, Ondrej Pokorny <lazarus at kluug.net> wrote:
>> IMO, the images are loaded only once in the IDEImageList or how it is
>> called, am I wrong?
> Maybe that whole loading can be threaded. One more task to my ToDo list ...
>
> Juha
Before you do unnecessary work, I made a small test. See the patch. The 
patch disables image loading (strictly speaking it allows only one image 
to be loaded and always uses this image). Then you can test a speed gain 
of IDE launch. I haven't observed any speed improvement. The IDE launch 
time is still the same. Does it reduce IDE launch time for you?
So image loading is not a problem at all.

Btw. if something should be improved about IDE launching - does Lazarus 
allow a "single IDE" option? E.g. when I open a .pas file in windows 
explorer or whatever, it is opened in the already active Lazarus IDE and 
not in a new one? Something like "UniqueInstance" 
(http://wiki.lazarus.freepascal.org/UniqueInstance) for the IDE?

Ondrej
-------------- next part --------------
Index: components/ideintf/ideimagesintf.pas
===================================================================
--- components/ideintf/ideimagesintf.pas	(revision 49794)
+++ components/ideintf/ideimagesintf.pas	(working copy)
@@ -169,6 +169,11 @@
   else
     Exit;
   end;
+  if List.Count > 0 then
+  begin
+    Result := 0;
+    Exit;
+  end;
   try
     Result := List.AddResourceName(HInstance, ImageName);
   except


More information about the Lazarus mailing list