[vtkusers] RES: vtkusers Digest, Vol 6, Issue 57

Luis Alberto Pereira l.a.pereira at uol.com.br
Wed Oct 27 12:36:53 EDT 2004


Hi Ingo, 

 

I followed your orientations and get this message: Debug Assertion failed
... Afxwin2.inl ... Line 282.

Then , if I press Ignore, the execution application continue with same
problem wich I related
 

BOOL CAnalitica3DBIView::Create(LPCTSTR lpszClassName, LPCTSTR
lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext)

{

       // TODO: Add your specialized code here and/or call the base class

    this->renWin->AddRenderer(this->ren);

       this->renWin->SetParentId(this->GetParent()->GetSafeHwnd());

    this->renWin->SetWindowId(this->GetSafeHwnd());

       this->iren->SetRenderWindow(this->renWin);

              

       return CView::Create(lpszClassName, lpszWindowName, dwStyle, rect,
pParentWnd, nID, pContext);

}


Luis Alberto
55 11 8184 8444
55 11 3744 9965
l.a.pereira at uol.com.br
lapereira_br at hotmail.com
lalberto at stefanini.com.br
 

-----Mensagem original-----
De: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] Em nome de
vtkusers-request at vtk.org
Enviada em: quarta-feira, 27 de outubro de 2004 13:00
Para: vtkusers at vtk.org
Assunto: vtkusers Digest, Vol 6, Issue 57

Send vtkusers mailing list submissions to
	vtkusers at vtk.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.vtk.org/mailman/listinfo/vtkusers
or, via email, send a message with subject or body 'help' to
	vtkusers-request at vtk.org

You can reach the person managing the list at
	vtkusers-owner at vtk.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of vtkusers digest..."


Today's Topics:

   1. RE: vtk application on Document/View (MDI) pattern. (de Boer Ingo)
   2. GUI resources access slowed down while using vtk (Bogdan Munteanu)
   3. Re: GUI resources access slowed down while using vtk (Jeff Lee)


----------------------------------------------------------------------

Message: 1
Date: Wed, 27 Oct 2004 16:35:01 +0200
From: "de Boer Ingo" <I.deBoer at polytec.de>
Subject: RE: [vtkusers] vtk application on Document/View (MDI)
	pattern.
To: "Luis Alberto Pereira" <l.a.pereira at uol.com.br>,
	<vtkusers at vtk.org>
Message-ID:
	
<1484AEC8AB498A4EB64D4A8137D23FD90145007B at 02polywbr.waldbronn.polytec.de>
	
Content-Type: text/plain;	charset="iso-8859-1"


Hi,

use

this->renWin->SetParentId(this->GetParent()->GetSafeHwnd());
this->renWin->SetWindowId(this->GetSafeHwnd());

instead of
this->renWin->SetParentId(this->m_hWnd);

greets
  Ingo


---
Dr.-Ing. Ingo H. de Boer

Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax  : ++49 7243 604 255
  
-----Original Message-----
 
Dears,
 
I'm using VC++ 2003 to construct my vtk application on Document/View (MDI)
pattern.
I'm using in Create event in CView class follow code:
 
BOOL C3DView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD
dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext*
pContext)
{
       // TODO: Add your specialized code here and/or call the base class
    this->renWin->AddRenderer(this->ren);
    this->renWin->SetParentId(this->m_hWnd);
    this->iren->SetRenderWindow(this->renWin);
              
    return CView::Create(lpszClassName, lpszWindowName, dwStyle, rect,
pParentWnd, nID, pContext);
}
 
And vtk render window is being created out of CchildFrame client area. It is
creating a separeted/duplicated render window of Cview in CchildFrame.
Can someone help me solve this problem ?
 
Thanks
 
Luis Alberto
55 11 8184 8444
55 11 3744 9965
l.a.pereira at uol.com.br
lapereira_br at hotmail.com
lalberto at stefanini.com.br
 
 


------------------------------

Message: 2
Date: Wed, 27 Oct 2004 11:31:58 -0400
From: "Bogdan Munteanu" <bogdan at to.adexa.com>
Subject: [vtkusers] GUI resources access slowed down while using vtk
To: <vtkusers at vtk.org>
Message-ID: <000501c4bc3a$18ddca50$7c0aa8c0 at adexainc.com>
Content-Type: text/plain;	charset="iso-8859-1"

Hi,

I am using vtk 4.2 in a C++ environment. The application I am working on
is an MDI-based program running on Windows XP with Service Pack 2 installed.

The hardware is decently good (1.5G of RAM, 128M video RAM, 1.7GHz
Centrino).

My MDI contains several views, one of which is based on the examples coming
with VTK.

Now comes the bad part: from time to time when the VTK view is brought up,
the system slows down significantly.

This is not due to the visualization pipeline ( I am rendering under 10
cubes, and the memory
consumption is under 200M for my application at that moment).

Moreover, the task manager doesn't show anything out of ordinary neither in
terms of CPU usage (under 6%!) nor of page faults.

Refreshing the other applications (.NET Studio, task manager) takes a lot
and one can see (literally) how the widgets of the other applications and
the icons on the desktop are refreshed one by one.

This situation continues even if I break my application in the debugger
(i.e., MY APPLICATION DOESN'T RUN). It looks like the access to the system's
GUI resources is being slowed down.

However, if I shut down the view, everything returns to normal.

Has anyone experienced anything similar?

I browsed the mailing list archive and the bug tracker: the only thing I
found was reported under the BUG #130.
However, even if the issue dealt with GUI resources, that case seemed to be
a combination of JVM and
VTK - Java wrappers, so it didn't help me much.

I really appreciate any help,

Cheers,
Bogdan




------------------------------

Message: 3
Date: Wed, 27 Oct 2004 11:37:46 -0400
From: Jeff Lee <jeff at cdnorthamerica.com>
Subject: Re: [vtkusers] GUI resources access slowed down while using
	vtk
To: Bogdan Munteanu <bogdan at adexa.com>
Cc: vtkusers at vtk.org
Message-ID: <417FC0CA.3080803 at cdnorthamerica.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed



Bogdan Munteanu wrote:

>Hi,
>
>I am using vtk 4.2 in a C++ environment. The application I am working on
>is an MDI-based program running on Windows XP with Service Pack 2
installed.
>
>The hardware is decently good (1.5G of RAM, 128M video RAM, 1.7GHz
>Centrino).
>
>My MDI contains several views, one of which is based on the examples coming
>with VTK.
>
>Now comes the bad part: from time to time when the VTK view is brought up,
>the system slows down significantly.
>
>This is not due to the visualization pipeline ( I am rendering under 10
>cubes, and the memory
>consumption is under 200M for my application at that moment).
>
>Moreover, the task manager doesn't show anything out of ordinary neither in
>terms of CPU usage (under 6%!) nor of page faults.
>  
>
what about number of gdi objects?  does it increase as you interact with 
the scene?
-J

>Refreshing the other applications (.NET Studio, task manager) takes a lot
>and one can see (literally) how the widgets of the other applications and
>the icons on the desktop are refreshed one by one.
>
>This situation continues even if I break my application in the debugger
>(i.e., MY APPLICATION DOESN'T RUN). It looks like the access to the
system's
>GUI resources is being slowed down.
>
>However, if I shut down the view, everything returns to normal.
>
>Has anyone experienced anything similar?
>
>I browsed the mailing list archive and the bug tracker: the only thing I
>found was reported under the BUG #130.
>However, even if the issue dealt with GUI resources, that case seemed to be
>a combination of JVM and
>VTK - Java wrappers, so it didn't help me much.
>
>I really appreciate any help,
>
>Cheers,
>Bogdan
>
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>  
>



------------------------------

_______________________________________________
vtkusers mailing list
vtkusers at vtk.org
http://www.vtk.org/mailman/listinfo/vtkusers


End of vtkusers Digest, Vol 6, Issue 57
***************************************




More information about the vtkusers mailing list