[vtkusers] .NET System.AccessViolationException

William E. Lucarell welucarell at equityeng.com
Fri Oct 17 14:41:42 EDT 2008


I am able to load the vtkFormsWindowControl fine in C# .NET 2005.  I am running a 32-bit Windows platform.  However, when I debug the project, even if I don't add additional code, the automatically generated Designer code causes a System.AccessViolationException, meaning that memory is corrupted.  It's the line where the size is set:

            this.vtkFormsWindowControl1.Location = new System.Drawing.Point(19, 27);
            this.vtkFormsWindowControl1.Name = "vtkFormsWindowControl1";
      -----> this.vtkFormsWindowControl1.Size = new System.Drawing.Size(242, 209);
            this.vtkFormsWindowControl1.TabIndex = 0;
            this.vtkFormsWindowControl1.Text = "vtkFormsWindowControl1";

My environment variables are set correctly.  This problem has occurred on my machine and one of my co-worker's machines. Any help would be appreciated.

Bill Lucarell


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081017/e5b94830/attachment.htm>


More information about the vtkusers mailing list