View Issue Details

IDProjectCategoryView StatusLast Update
0036335FPCPackagespublic2019-11-23 09:04
ReporterFr0sTAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx64OSWindowsOS Version7
Product Version3.3.1Product Build 
Target VersionFixed in Version3.3.1 
Summary0036335: GetCompilerInfo from fppkg/pkgglobals.pp blinks with console window [w/patch]
DescriptionCurrently GetCompilerInfo function from fppkg/pkgglobals.pp blinks with console window for a moment, this is invisible when running console process but looks ugly on Lazarus startup. Attached patch adds swoHIDE parameter to TProcess parameters
Steps To ReproduceStart Lazarus
Tagsfppkg
Fixed in Revision43562
FPCOldBugId
FPCTarget3.2.0
Attached Files
  • console-blink.diff (489 bytes)
     packages/fppkg/src/pkgglobals.pp | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/packages/fppkg/src/pkgglobals.pp b/packages/fppkg/src/pkgglobals.pp
    index e7f1c183bb..df3e97b9f7 100644
    --- a/packages/fppkg/src/pkgglobals.pp
    +++ b/packages/fppkg/src/pkgglobals.pp
    @@ -366,6 +366,7 @@ begin
     {$ELSE USE_SHELL}
       S:=TProcess.Create(Nil);
       S.Commandline:=ACompiler+' '+AOptions;
    +  S.ShowWindow:=swoHIDE;
       S.Options:=[poUsePipes];
       S.execute;
       Count:=s.output.read(buf,BufSize);
    
    console-blink.diff (489 bytes)

Activities

Fr0sT

2019-11-21 14:13

reporter  

console-blink.diff (489 bytes)
 packages/fppkg/src/pkgglobals.pp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/packages/fppkg/src/pkgglobals.pp b/packages/fppkg/src/pkgglobals.pp
index e7f1c183bb..df3e97b9f7 100644
--- a/packages/fppkg/src/pkgglobals.pp
+++ b/packages/fppkg/src/pkgglobals.pp
@@ -366,6 +366,7 @@ begin
 {$ELSE USE_SHELL}
   S:=TProcess.Create(Nil);
   S.Commandline:=ACompiler+' '+AOptions;
+  S.ShowWindow:=swoHIDE;
   S.Options:=[poUsePipes];
   S.execute;
   Count:=s.output.read(buf,BufSize);
console-blink.diff (489 bytes)

Michael Van Canneyt

2019-11-23 09:04

administrator   ~0119440

Applied, thank you for the patch!

Issue History

Date Modified Username Field Change
2019-11-21 14:13 Fr0sT New Issue
2019-11-21 14:13 Fr0sT File Added: console-blink.diff
2019-11-21 14:14 Fr0sT Tag Attached: fppkg
2019-11-23 09:04 Michael Van Canneyt Assigned To => Michael Van Canneyt
2019-11-23 09:04 Michael Van Canneyt Status new => resolved
2019-11-23 09:04 Michael Van Canneyt Resolution open => fixed
2019-11-23 09:04 Michael Van Canneyt Fixed in Version => 3.3.1
2019-11-23 09:04 Michael Van Canneyt Fixed in Revision => 43562
2019-11-23 09:04 Michael Van Canneyt FPCTarget => 3.2.0
2019-11-23 09:04 Michael Van Canneyt Note Added: 0119440