[vtkusers] VTK-Borland Render Window
Osc@r
olguna at cimat.mx
Thu Aug 16 20:47:18 EDT 2007
Hi All!!!!!!!!
Finally It was solved the problem cited below, thanks.
In BCB5 IDE in Project->Options->Linker just disable "Use dynamic
RTL"
But I get the problem that probably Dean was expecting, I got an
error when I try to quit the application.
if app render a sphere (Button 'create 1' is pushed) and then try to
quit, it throw 3 error messages:
<< ... Access Violation at adresss 0__0 ...>>
<< Assertion failed: this->Current==0, file
..\vtk(code_source)\common\vtkGarbageCollector.cxx line 419 >>
<< Abnormal program termination >> after this app is
closed
if app doesn't render a sphere (Button 'create 1' is pushed) and
then try to quit, it throw just 1 error message: << ... Access
Violation at adresss 0__0 ...>> after this it's no posible to close the app
This PC has
WindowsXP Pro ServicePack2
Nvidia GeForce FX 5200
VTK-5.0.3
CMAKE-2.4.7
Borland C++ Builder 5 (bcc 55)
and I´m using
BUILD_SHARED_LIBS: OFF
CMAKE_BUILD_TYPE: Debug
VTK_USE_RENDERING: ON
VTK_USE_PARALLEL: OFF
VTK_USE_GUISUPPORT: ON
:
:
:
I was wondering if somebody can tell me how to solve this problem,
or give me a tip about what's wrong...
Thanks in advance!!!
PS
Sorry by English write but i'm a spanish speaker
Oscar Gutiérrez Luna
CIMAT A. C.
Cubiculo: J4
Tel.:(01 473) 73 271-55 ext. 49672
Guanajuato, Gto. Mexico
-----Mensaje original-----
De: Osc at r [mailto:olguna at cimat.mx]
Enviado el: Lunes, 02 de Julio de 2007 05:44 a.m.
Para: 'dean.inglis at camris.ca'
CC: 'vtkusers at vtk.org'
Asunto: RE: RE: VTK-Borland Render Window
Hi Dean,
thanks to give pursuit to my problem
This error ocurs when the aplication starts
moreover is in the next method
void __fastcall TVTK_Form::FormShow(TObject *Sender)
{
// These calls are made to enforce creation
of the internal
// vtk components of the
vtkBorlandRenderWindow. If this were
// not done, clicking on the component would
attempt to pass
// window messages to non-existent entities.
This behaviour
// could be changed in future.
JUST in the next line, if debug, the program tries to run
this line, but the error ocurs
vtkRenderWindowInteractor * iact =
vtkWindow1->GetInteractor();
vtkRenderer* ren1 = vtkWindow1->GetRenderer();
}
Actually I'm building with static libs (lib's)
Oscar Gutiérrez Luna
CIMAT A. C.
Cubiculo: J4
Tel.: 73 271-55 ext. 49672
-----Mensaje original-----
De: dean.inglis at camris.ca [mailto:dean.inglis at camris.ca]
Enviado el: Sábado, 30 de Junio de 2007 05:44 a.m.
Para: Osc at r; vtkusers at vtk.org
Asunto: Re: RE: VTK-Borland Render Window
Hi Oscar,
are you seeing this error when you try
to quit the application? When does the
error occur? Debug MinSizeRel or Release
modes should not make any difference.
Are you building with shared (dll's)
or static libs ?: this will make a difference
in how you have to end the Borland application.
Dean
> Your tips was right, and finally compile & run
Project_vtkDemo, but
> meanwhile I got another error, i'm trying to
correct it but it is
> persistent.
> The error ocurs once I run Project_vtkDemo and said
something like
> 'ERROR:.... trying to delete object with non-zero
reference count', I have
> been reading in mail_list I'm not the only one with
this problem
>
> The PC has
> WindowsXP Pro ServicePack2
> VTK-5.0.3
> CMAKE-2.4.6
> Borland C++ Builder 5 (bcc 55)
>
> I try changing CMAKE_BUILD_TYPE: MinSizeRel / Debug
/ Release
> and BUILD_SHARED_LIBS: On / Off
> doesn't work
>
> Somebody can tell me, what's wrong
>
> Oscar Gutiérrez Luna
> CIMAT A. C.
> Office: J4
> Tel.: 73 271-55 ext. 49672
More information about the vtkusers
mailing list