[vtkusers] MFC CWnd and VTK

Tom Parker tapadmin at swbell.net
Thu Aug 29 11:03:14 EDT 2002


Hello All,

These demos work for me, I still get one memory leak using the vtkSDI
example but that's a blessing considering the hundreds in the original
demos.

I have tracked down this memory address before and the problem seems to be
in the vtkOpenGLPolyDataMapper.cxx class. I found the threads in the mail
archives relating to this earlier and moved the vtk classes and destructors
from the doc to the view but it didn't help.

...
Detected memory leaks!
Dumping objects ->
{2216} normal block at 0x03787320, 5200 bytes long.
 Data: <        Building> 00 00 00 00 00 00 00 00 42 75 69 6C 64 69 6E 67
Object dump complete.
...

I must confess to having written some huge commercial apps using MFC, I'll
add some complexity to these demos (sliders/buttons/splitters/doc archives)
when I get a chance and send them to John.

Thanks again Andrew,

Tom

> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of John Biddiscombe
> Sent: Thursday, August 29, 2002 7:33 AM
> To: list-vtk-developers; vtkusers at public.kitware.com;
> a.maclean at acfr.usyd.edu.au
> Subject: Re: [vtkusers] MFC CWnd and VTK
>
>
> Andrew, + developers + users,
>
> I have checked in your MDI and SDI examples under the following tree
>
> \VTK\Examples\GUI\Win32\vtkMFC
>
> with
> \VTK\Examples\GUI\Win32\vtkMFC\vtkMDI
> \VTK\Examples\GUI\Win32\vtkMFC\vtkSDI
> as subdirs.
>
> Your project files didn't work on my setup due to heap error with
> MSVC (/Zm option) and they have been removed. Instead, I have
> added CMakeLists.txt files to the appropriate locations. This
> setup is tested and produces working projects which compile and
> run under Visual Studio 7 dot NET.
>
> If anyone reading can test under MSVC 6 and confirm that it
> works, it would be appreciated.
>
> TABS were converted to 2x<space>. Apologies for resulting style
> errors. Your headers/disclaimers were replaced with the standard vtk text.
>
> Many thanks for your demos. On a pesonal note - as an experienced
> vtk user, but new to MSVC I'd like to see demos with buttons and
> sliders etc that show how to design a complex gui that integrates
> with vtk. (eg control the glyph sizes with a slider &etc) - No
> doubt this is not really a vtk issue but rather one of
> familiarising oneself with the development environment.
>
> Thanks again
>
> John B
>
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list