<div dir="ltr"><div><div><div><div>Hi, <br><br>I am writing my own plugin but each time I try to add another check box, the plugin suddenly segfaults. I have no idea why. The XML and C++ code are attached. <br><br></div>XML:<br>
<br><IntVectorProperty<br> name="FieldLoadStatus"<br> command="SetFieldLoadStatus"<br> number_of_elements="1"<br> default_values="0"<br> panel_visibility="default" ><br>
<BooleanDomain name="bool"/><br> <Documentation><br> The values of this property sets the run number.<br> </Documentation><br> </IntVectorProperty><br>
</div>C++:<br><br>public:<br> vtkTypeMacro(ReadUALGrid, vtkUnstructuredGridAlgorithm);<br> void PrintSelf(ostream& os, vtkIndent indent);<br><br> static ReadUALGrid *New();<br><br> vtkGetMacro(Shot,int)<br> vtkSetMacro(Shot,int);<br>
<br> vtkGetMacro(Run,int);<br> vtkSetMacro(Run,int);<br><br> vtkGetMacro(RefRun,int);<br> vtkSetMacro(RefRun,int);<br><br> vtkGetMacro(CPOLoad,int);<br> vtkSetMacro(CPOLoad,int);<br><br> vtkGetMacro(FieldLoadStatus,int);<br>
vtkSetMacro(FieldLoadStatus,int);<br><br>protected:<br> ReadUALGrid();<br> ~ReadUALGrid(){}<br><br> int Shot;<br> int Run;<br> int RefRun;<br> int CPOLoad;<br> int FieldLoadStatus;<br><br></div>I have no idea why because it worked perfectly for other check boxes. Thank you. <br>
<br></div>Regards,<br>Girish<br></div>