quick-screen-recorder
quick-screen-recorder copied to clipboard
App not running after installation
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)
same on latest release (v1.2.1)
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[])
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.
It looks like the problem is happening on this line of code. The
AreaForm
constructor is being called, which callsInitializeComponent()
, which executes theAreaForm_SizeChanged
event handler, and all that happens beforeareaForm.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.
Same problem here.
Same problem.
same problem
same problem
same problem
same problem
Same problem...