Hi,<br><br>I will never understand Microsoft. I resolved my issue.<br><br>I work with Visual STUDIO 2008, use vtk 5-4-2 and Activiz.Net 5-4-2.<br>In fact, I build a solution including 4 projects: 3DIntegration(a wpf window; it's the start project), UserControl3D(control wpf) and 2 others projects. <br>
<br>Before, 3DIntegration and UserControl3D had got the 2 references to access vtk Librairies (Kitware.Vtk.dll and Kitware.mummy.Runtime). All worked. <br><br>When i tried to resolve my problem, i understood that the adding of the 2 references in the start project was useless, so i removed both. And magically, no more problem.<br>
<br><div class="gmail_quote">2010/8/26 Bertrand de Boisdeffre <span dir="ltr"><<a href="mailto:bertrand.boisdeffre@gmail.com">bertrand.boisdeffre@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br><br>I am going to crazy. Yesterday, my windowsForm using a RenderWindowControl worked perfectly. This morning, when i tried to instanciate my renderWindowControl an initialization exception was thrown.<br><br>Here was my code : <br>
<br>System.WindowsFormHost vtkControlHost;<br><br>private void vtkControlHost_Loaded(object sender, RoutedEventArgs e)<br> {<br> <br> // Create the renderWindowControl <br> this.renderWindowControl = new RenderWindowControl();<br>
this.renderWindowControl.Size = new System.Drawing.Size((int)vtkControlHost.Width, (int)vtkControlHost.Height);<br><br> // renderWindowControl Event<br> this.renderWindowControl.Load +=new EventHandler(this.ShowDefaultScene); <br>
vtkControlHost.Child = this.renderWindowControl;<br> }<br><br>public void ShowDefaultScene(object sender, EventArgs e)<br> {<br><br> this.renderWindow = renderWindowControl.RenderWindow;<br>
this.renderer = renderWindowControl.RenderWindow.GetRenderers().GetFirstRenderer();<br> <br> .....<br> }<br>Before, when renderWindowControl became the vtkControlHost Child, the method showDefaultScene() was called. Not today, So i changed this line by<br>
<br>this.renderWindowControl.ParentChanged +=new EventHandler(this.ShowDefaultScene);<br><br>Then, the method was called, but in ShowDefaultScene(), i create some actors ( vtkPolyData, vtkPolyDataMapper, vtkActor) and when i instanciate the first vtk object (vtkPolyData) an initialization exception is thrown again.<br>
I don't understand, I did'nt modify anything, except others files in my global project. However, they don't have some Kitware dll as reference, so...<br><br>Best regards.<br><font color="#888888"><br>-- <br>Bertrand de Boisdeffre<br>
Etudiant 2A SICOM Phelma Grenoble-INP<br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Bertrand de Boisdeffre<br>Etudiant 2A SICOM Phelma Grenoble-INP<br><br>