<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>