[vtkusers] Program crashes at return EXIT_SUCCESS in QT Creator

David Lonie david.lonie at kitware.com
Tue Dec 20 10:41:13 EST 2016


AIUI, mingw isn't well supported by VTK. You're in somewhat uncharted
waters, things will be smoother with MSVC.

Best,
Dave

On Tue, Dec 20, 2016 at 4:29 AM, Alex Liu via vtkusers <vtkusers at vtk.org>
wrote:

> Hi all.
> I build vtk using mingw32 in windows 7-64bit. When I run any VTK program it
> runs fine till it hits the line return EXIT_SUCCESS or return 0, even the
> simplest example  VTK Hello World Example
> <http://www.vtk.org/Wiki/VTK/Examples/Cxx/Rendering/Cylinder>
>
> I tried adding
> #include <vtkAutoInit.h>
> VTK_MODULE_INIT(vtkInteractionStyle)
> VTK_MODULE_INIT(vtkRenderingFreeType)
> VTK_MODULE_INIT(vtkRenderingOpenGL2)
> //VTK_MODULE_INIT(vtkDomainsChemistryOpenGL2)
> //VTK_MODULE_INIT(vtkRenderingContextOpenGL2)
> //VTK_MODULE_INIT(vtkRenderingVolumeOpenGL2)
>
> but nothing helps.
> I don't get any error message from vtk. All i get is
> Error - RtlWerpReportException failed with status code :-1073741823. Will
> try to launch the process directly
> from QT error window.
>
> I noticed one thing, that is, the program only crashes if i render window
> and display it.
> Please help me with this problem.
> Thank you all.
> Alex.
>
>
>
> -----
> Alex Liu
> +15574855474
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/Program-crashes-at-return-EXIT-SUCCESS-in-QT-Creator-tp5741607.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161220/1e2a4b7b/attachment.html>


More information about the vtkusers mailing list