|
I have a VB.NET 2008 project that is inexplicably starting to generate this error: "An error occurred creating the form. See Exception.InnerException for details. The error is: The form referred to itself during construction from a default instance, which led to infinite recursion. Within the Form's constructor refer to the form using 'Me.'" I haven't changed the section of code that is generating the error in ages, and this isn't true; the form that it wants me to call "me" isn't related to the process at all. If I change it to "me", then it doesn't work because the form in question isn't actually "me". Here's the exception detail: System.InvalidOperationException was unhandled Message="An error occurred creating the form. See Exception.InnerException for details. The error is: The form referred to itself during construction from a default instance, which led to infinite recursion. Within the Form's constructor refer to the form using 'Me.'" Source="EpicTCG Tournament Manager" StackTrace: at EpicTCG_Tournament_Manager.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190 at EpicTCG_Tournament_Manager.My.MyProject.MyForms.get_RoundReporter() at EpicTCG_Tournament_Manager.TournamentFunctions.NewRound(PlayerStruct[]& myPlayerList, Int32& myCurrentRound, Int32& myTournamentRounds) in C:\Documents and Settings\Niko White\My Documents\Visual Studio 2008\Projects\EpicTCG Tournament Manager\EpicTCG Tournament Manager\TournamentFunctions.vb:line 6 at EpicTCG_Tournament_Manager.PlayerManager.TourneyStart_Click(Object sender, EventArgs e) in C:\Documents and Settings\Niko White\My Documents\Visual Studio 2008\Projects\EpicTCG Tournament Manager\EpicTCG Tournament Manager\PlayerManager.vb:line 97 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(ApplicationContext context) at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at EpicTCG_Tournament_Manager.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel) at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly() at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData) at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext) at System.Activator.CreateInstance(ActivationContext activationContext) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: System.InvalidOperationException Message="The form referred to itself during construction from a default instance, which led to infinite recursion. Within the Form's constructor refer to the form using 'Me.'" Source="EpicTCG Tournament Manager" StackTrace: at EpicTCG_Tournament_Manager.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 180 at EpicTCG_Tournament_Manager.My.MyProject.MyForms.get_RoundReporter() at EpicTCG_Tournament_Manager.TournamentFunctions.UpdateLists(PlayerStruct[]& myPlayerList, Int32& myCurrentRound, Int32& myTournamentRounds) in C:\Documents and Settings\Niko White\My Documents\Visual Studio 2008\Projects\EpicTCG Tournament Manager\EpicTCG Tournament Manager\TournamentFunctions.vb:line 238 at EpicTCG_Tournament_Manager.RoundReporter.ListUnentered_CheckedChanged(Object sender, EventArgs e) in C:\Documents and Settings\Niko White\My Documents\Visual Studio 2008\Projects\EpicTCG Tournament Manager\EpicTCG Tournament Manager\RoundReporter.vb:line 108 at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e) at System.Windows.Forms.CheckBox.set_CheckState(CheckState value) at System.Windows.Forms.CheckBox.set_Checked(Boolean value) at EpicTCG_Tournament_Manager.RoundReporter.InitializeComponent() in C:\Documents and Settings\Niko White\My Documents\Visual Studio 2008\Projects\EpicTCG Tournament Manager\EpicTCG Tournament Manager\RoundReporter.Designer.vb:line 216 at EpicTCG_Tournament_Manager.RoundReporter..ctor() in C:\Documents and Settings\Niko White\My Documents\Visual Studio 2008\Projects\EpicTCG Tournament Manager\EpicTCG Tournament Manager\RoundReporter.vb:line 2 InnerException: It has started happening now twice when I made seemingly completely unrelated changes (as in, changes to no form involved in the function or to the function.) Any help would be really appreciated. I am a total newbie to VB.Net (and not particularly versed in programming in general) so it could be something really obvious I am overlooking; any suggestions are welcome even if you think "that's so stupid he must have tried it" ;) Thanks a lot.
|