quick-screen-recorder icon indicating copy to clipboard operation
quick-screen-recorder copied to clipboard

App not running after installation

Open Barley194 opened this issue 3 years ago • 11 comments

After installing this app, when I try to open it, nothing happens. Also there aren't any processes running in task manager.

Currently on windows 10 pro version 2004 (19041.572)

Barley194 avatar Nov 12 '20 20:11 Barley194

same on latest release (v1.2.1)

MineEric64 avatar Mar 07 '21 05:03 MineEric64

Same issue here. In the Windows Event Viewer I found a .NET error log with a stack trace:

Application: quick-screen-recorder.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
   at quick_screen_recorder.AreaForm.AreaForm_SizeChanged(System.Object, System.EventArgs)
   at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs)
   at System.Windows.Forms.Control.UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)
   at System.Windows.Forms.Control.UpdateBounds(Int32, Int32, Int32, Int32)
   at System.Windows.Forms.Control.SetBoundsCore(Int32, Int32, Int32, Int32, System.Windows.Forms.BoundsSpecified)
   at System.Windows.Forms.Form.SetBoundsCore(Int32, Int32, Int32, Int32, System.Windows.Forms.BoundsSpecified)
   at System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
   at System.Windows.Forms.ScrollableControl.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
   at System.Windows.Forms.Form.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
   at System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF, System.Drawing.SizeF, System.Windows.Forms.Control)
   at System.Windows.Forms.ContainerControl.Scale(System.Drawing.SizeF, System.Drawing.SizeF, System.Windows.Forms.Control)
   at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean, Boolean)
   at System.Windows.Forms.ContainerControl.PerformNeededAutoScaleOnLayout()
   at System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean)
   at System.Windows.Forms.Control.ResumeLayout(Boolean)
   at quick_screen_recorder.AreaForm.InitializeComponent()
   at quick_screen_recorder.AreaForm..ctor()
   at quick_screen_recorder.MainForm..ctor(Boolean)
   at quick_screen_recorder.Program.Main(System.String[])

pcrockett avatar Apr 05 '21 17:04 pcrockett

It looks like the problem is happening on this line of code. The AreaForm constructor is being called, which calls InitializeComponent(), which executes the AreaForm_SizeChanged event handler, and all that happens before areaForm.Owner can be set.

Seems like adding some question marks in the event handler could fix the issue, for example:

(this.Owner as MainForm)?.SetMaximumX(maxWidth - this.Width);

Though I'm a .NET dev, I am certainly not a WinForms dev, so this definitely isn't my area of expertise.

pcrockett avatar Apr 05 '21 17:04 pcrockett

It looks like the problem is happening on this line of code. The AreaForm constructor is being called, which calls InitializeComponent(), which executes the AreaForm_SizeChanged event handler, and all that happens before areaForm.Owner can be set.

Seems like adding some question marks in the event handler could fix the issue, for example:


(this.Owner as MainForm)?.SetMaximumX(maxWidth - this.Width);

Though I'm a .NET dev, I am certainly not a WinForms dev, so this definitely isn't my area of expertise.

Thank you for the tip.

Beelink avatar Apr 09 '21 05:04 Beelink

Same problem here.

cristoferfb avatar Apr 26 '21 20:04 cristoferfb

Same problem.

Xiguyiwan avatar May 15 '21 08:05 Xiguyiwan

same problem

szaimen avatar Sep 12 '21 12:09 szaimen

same problem

monarch-inf avatar Dec 21 '21 15:12 monarch-inf

same problem

Bob337 avatar Jan 02 '22 12:01 Bob337

same problem

aiwongs avatar Sep 13 '23 08:09 aiwongs

Same problem...

LSDL avatar Apr 02 '24 02:04 LSDL