Browse Source

+ add a lock to speed up parsing of userscreen

pierre 23 years ago
parent
commit
43c0474872
1 changed files with 6 additions and 1 deletions
  1. 6 1
      ide/fpcompil.pas

+ 6 - 1
ide/fpcompil.pas

@@ -242,6 +242,7 @@ begin
     exit;
     exit;
   DisplayCompilerWindow:=false;
   DisplayCompilerWindow:=false;
   PushStatus('Parsing User Screen');
   PushStatus('Parsing User Screen');
+  CompilerMessageWindow^.Lock;
   for Y:=0 to UserScreen^.GetHeight do
   for Y:=0 to UserScreen^.GetHeight do
     begin
     begin
       UserScreen^.GetLine(Y,Text,Attr);
       UserScreen^.GetLine(Y,Text,Attr);
@@ -260,6 +261,7 @@ begin
       CompilerMessageWindow^.MakeFirst;
       CompilerMessageWindow^.MakeFirst;
       CompilerMessageWindow^.MsgLB^.SelectFirstError;
       CompilerMessageWindow^.MsgLB^.SelectFirstError;
     end;
     end;
+  CompilerMessageWindow^.UnLock;
   PopStatus;
   PopStatus;
 end;
 end;
 
 
@@ -1263,7 +1265,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.8  2002-04-10 22:37:37  pierre
+  Revision 1.9  2002-08-26 13:03:14  pierre
+   + add a lock to speed up parsing of userscreen
+
+  Revision 1.8  2002/04/10 22:37:37  pierre
    * save and restore Exitproc if LongJmp called
    * save and restore Exitproc if LongJmp called
 
 
   Revision 1.7  2002/03/20 14:48:27  pierre
   Revision 1.7  2002/03/20 14:48:27  pierre