So, I am doing a simple personal project in winforms with F #. My code worked, but now throws this exception apparently for no reason.
An unhandled exception of type 'System.InvalidOperationException' occurred in FSharp.Core.dll
Additional information: The initialization of an object or value resulted in an object or value being accessed recursively before it was fully initialized.
Code is a member method that is called from the constructor of the form itself
do
//lots of other constructor code before this point
// render the form
form.ResumeLayout(false)
form.PerformLayout()
form.ReloadGoals
//several other members before here
member form.ReloadGoals =
let x = 10 //crashes on this line
The website on which I took the template for the project I am using is this one . Unfortunately, I made some significant additions to this.
I would be happy to post more code, but I need to know which code will matter exactly since I am not completely sure and do not want it to fail the message in extraneous code.
System.InvalidOperationException.
, , , , .