<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK
href="cid:filelist.xml@01C3B682.08D2EAF0" rel=File-List><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
PRE {
        FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Courier New"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
        mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
        mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=FR style="tab-interval: 35.4pt" vLink=purple link=blue>
<DIV><SPAN class=491010215-01122003>
<P class=MsoNormal><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><FONT
color=#008000><SPAN class=491010215-01122003>Hi </SPAN>Louis-Jacques<SPAN
class=491010215-01122003>,</SPAN></FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><FONT
color=#008000><SPAN
class=491010215-01122003></SPAN></FONT></SPAN> </P></SPAN></DIV>
<DIV><FONT face=Arial color=#008000><SPAN class=491010215-01122003>You have
done nothing wrong. To solve the crash problem in Project_vtkDemo, remove the
FormDestroy event. Instead, add this FormClose event.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#008000><SPAN
class=491010215-01122003></SPAN></FONT> </DIV>
<DIV><SPAN class=491010215-01122003>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p><FONT color=#008000 size=3>void
__fastcall TVTK_Form::FormClose(TObject *Sender, TCloseAction
&Action)<BR>{<BR>
vtkWindow1->GetRenderer()->RemoveAllProps();<BR>
<BR>}<BR></FONT></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#008000 size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT> </P>
<P class=MsoNormal><FONT size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p><FONT color=#008000><SPAN
class=491010215-01122003><FONT
size=3>Yang</FONT></SPAN></FONT></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p><FONT color=#008000><SPAN
class=491010215-01122003></SPAN> </FONT></o:p></SPAN></FONT></P><FONT
color=#008000> </FONT></SPAN></DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Louis-Jacques Lalonde
[mailto:lalond01@gel.ulaval.ca] <BR><B>Sent:</B> Saturday, November 29, 2003
1:07 PM<BR><B>To:</B> vtkusers@vtk.org<BR><B>Subject:</B> [vtkusers] Using
Borland BCC6 and VTK<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">Hi
!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">First,
thanks for taking time to read my message.<SPAN style="mso-spacerun: yes">
</SPAN>Since 2-3 days I'm trying to use VTK with Borland C++ Builder 6 (with
patch #4).<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I
downloaded the latest version of VTK source (4.2.4)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I
downloaded the latest version of <SPAN class=SpellE>Cmake</SPAN>
(1.8.2)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I used
<SPAN class=SpellE>CMake</SPAN> to build a Borland <SPAN
class=SpellE>makefile</SPAN><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I used
make.exe from Borland to compile everything.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I didn't
get any errors.<SPAN style="mso-spacerun: yes"> </SPAN>My problem is when
I try to use VTK in Borland.<SPAN style="mso-spacerun: yes"> </SPAN>I want
to make a GUI with a VTK window.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I found
the component </SPAN></FONT><SPAN class=SpellE><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-CA
style="FONT-WEIGHT: bold; mso-ansi-language: EN-CA; mso-bidi-font-weight: normal">vtkBorlandRenderWindow</SPAN></B></SPAN><FONT
face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"> in <B
style="mso-bidi-font-weight: normal"><SPAN
style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">/Examples/GUI/Win32/vtkBorland/<o:p></o:p></SPAN></B></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">So I
installed it.<SPAN style="mso-spacerun: yes"> </SPAN>It added correctly in
the component bar.<SPAN style="mso-spacerun: yes"> </SPAN>When I try to
compile the demo programme I get this error.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; mso-ansi-language: EN-CA">The exception is raised at:<o:p></o:p></SPAN></FONT></PRE><PRE><SPAN class=SpellE><SPAN class=GramE><B style="mso-bidi-font-weight: normal"><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; mso-ansi-language: EN-CA; mso-bidi-font-weight: normal">DummyCritSect.Lock</SPAN></FONT></B></SPAN></SPAN><SPAN class=GramE><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-CA style="FONT-WEIGHT: bold; mso-ansi-language: EN-CA; mso-bidi-font-weight: normal">(</SPAN></B></SPAN><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-CA style="FONT-WEIGHT: bold; mso-ansi-language: EN-CA; mso-bidi-font-weight: normal">);<SPAN style="mso-spacerun: yes"> </SPAN>// <SPAN class=SpellE>vtkPolyData::~vtkPolyData</SPAN>()<o:p></o:p></SPAN></B></PRE>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><FONT face=Arial
size=2><SPAN lang=EN-CA
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA; mso-bidi-font-weight: normal"><o:p> </o:p></SPAN></FONT></B></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I have the
VTK <SPAN class=SpellE>libs</SPAN> included in my
project.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">All my
problems are when I close the form where is my <SPAN
class=SpellE>vtkRenderWindow</SPAN>.<SPAN style="mso-spacerun: yes">
</SPAN>I see the demo <SPAN class=GramE>correctly,</SPAN> I can interact with
the object in the <SPAN class=SpellE>Renderwindow</SPAN>, but the program crash
when I close the form.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I also
tried to compile a older version of <SPAN class=GramE>VTK(</SPAN>4.2.2) and I
have the same problem.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">I tried to
make a little program myself because I was thinking maybe the component was the
problem.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">__<SPAN
class=SpellE>fastcall</SPAN> TForm1::<SPAN class=GramE>TForm1(</SPAN><SPAN
class=SpellE>TComponent</SPAN>* Owner)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN>: <SPAN
class=SpellE><SPAN class=GramE>TForm</SPAN></SPAN><SPAN
class=GramE>(</SPAN>Owner)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">{<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>renderer</SPAN></SPAN> = <SPAN
class=SpellE>vtkRenderer::New</SPAN>();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>renWin</SPAN></SPAN> = <SPAN
class=SpellE>vtkRenderWindow::New</SPAN>();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>renWin</SPAN></SPAN>-><SPAN
class=SpellE>AddRenderer</SPAN>(<SPAN
class=SpellE>renderer</SPAN>);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>renWin</SPAN></SPAN>-><SPAN
class=SpellE>SetParentId</SPAN>(this->Handle);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>iren</SPAN></SPAN> = <SPAN
class=SpellE>vtkRenderWindowInteractor::New</SPAN>();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>iren</SPAN></SPAN>-><SPAN
class=SpellE>SetRenderWindow</SPAN>(<SPAN
class=SpellE>renWin</SPAN>);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=GramE>cone</SPAN> = <SPAN
class=SpellE>vtkConeSource::New</SPAN>();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=GramE>cone</SPAN>-><SPAN class=SpellE>SetHeight</SPAN>( 3.0
);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=GramE>cone</SPAN>-><SPAN class=SpellE>SetRadius</SPAN>( 1.0
);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=GramE>cone</SPAN>-><SPAN class=SpellE>SetResolution</SPAN>( 10
);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>coneMapper</SPAN></SPAN> = <SPAN
class=SpellE>vtkPolyDataMapper::New</SPAN>();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>coneMapper</SPAN></SPAN>-><SPAN
class=SpellE>SetInput</SPAN>(cone-><SPAN
class=SpellE>GetOutput</SPAN>());<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>coneActor</SPAN></SPAN> = <SPAN
class=SpellE>vtkActor::New</SPAN>();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>coneActor</SPAN></SPAN>-><SPAN
class=SpellE>SetMapper</SPAN>(<SPAN
class=SpellE>coneMapper</SPAN>);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>renderer</SPAN></SPAN>-><SPAN
class=SpellE>AddActor</SPAN>(<SPAN
class=SpellE>coneActor</SPAN>);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>renderer</SPAN></SPAN>-><SPAN
class=SpellE>SetBackground</SPAN>(0.2, 0.4, 0.3);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>renWin</SPAN></SPAN>-><SPAN
class=SpellE>SetSize</SPAN>(300, 300);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN class=GramE>renWin</SPAN></SPAN>-><SPAN
class=SpellE>SetPosition</SPAN>(0,0);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=GramE>cone</SPAN>->Delete();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN
class=GramE>coneActor</SPAN></SPAN>->Delete();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN
class=GramE>coneMapper</SPAN></SPAN>->Delete();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN
class=GramE>renWin</SPAN></SPAN>->Render();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><SPAN class=GramE><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">void</SPAN></FONT></SPAN><FONT
face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"> __<SPAN
class=SpellE>fastcall</SPAN> TForm1::OnDestroy(<SPAN class=SpellE>TObject</SPAN>
*Sender)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">{<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN
class=GramE>iren</SPAN></SPAN>->Delete();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN
class=GramE>renderer</SPAN></SPAN>->Delete();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
class=SpellE><SPAN
class=GramE>renWin</SPAN></SPAN>->Delete();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">It crash
when I close the program.<SPAN style="mso-spacerun: yes"> </SPAN>If I
follow the execution, the <SPAN class=SpellE>OnDestroy</SPAN> ends, after the
execution goes in <SPAN
class=SpellE>vtkRenderer.h</SPAN><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><SPAN class=GramE><B
style="mso-bidi-font-weight: normal"><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA; mso-bidi-font-weight: normal">void</SPAN></FONT></B></SPAN><B
style="mso-bidi-font-weight: normal"><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA; mso-bidi-font-weight: normal">
<SPAN class=SpellE>AddActor</SPAN>(<SPAN class=SpellE>vtkProp</SPAN> *p)
{this-><SPAN class=SpellE>AddProp</SPAN>(p);};</SPAN></FONT></B><FONT
face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"> and it's
where it crash.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">If anyone
can help me, that would be very nice. I read everything I could find in the
mailing list without finding the solution.<SPAN style="mso-spacerun: yes">
</SPAN>Is it a problem with my Borland C++ Builder or my <SPAN
class=SpellE>CMake</SPAN> Build? Any particular option I should set when I build
a Borland <SPAN class=SpellE>Makefile</SPAN>?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">Thanks,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-CA">Louis-Jacques
Lalonde<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P></DIV></BODY></HTML>