[vtkusers] QVTKWidget , Application crashes on MS Compiler 64Bit Release ?

Ashika Umanga Umagiliya aumanga at biggjapan.com
Tue Jul 5 20:31:42 EDT 2011


Hi John,

Thanks for the tip.
I have both Debug and Release builds of VTK.I link relevant libraries depend
on the build.
I don't use VS for my development.I use Eclipse CDT / CMake /NMAKE on
Windows .
I  am wondering whether this is a compiler related issue , because Release
build using MINGW works fine.

thanks
umanga


On 5 July 2011 23:05, John Drescher <drescherjm at gmail.com> wrote:

> On Mon, Jul 4, 2011 at 9:22 PM, Ashika Umanga Umagiliya
> <aumanga at biggjapan.com> wrote:
> > Greeting all,
> > In my application ,I use QVTKWidget with QT 4.7.
> > Everything work fine with Mingw Release/Debug and on Linux/GCC.
> > Now I am in the process of compiling 64Bit version using MS C++ Compiler
> on
> > Windows 7 (version string : Microsoft (R) C/C++ Optimizing Compiler
> Version
> > 16.00.30319.01 for x64)
> > I can run the application in Debug mode , but application crashes in
> Release
> > mode when I open my QVTKWidget.
> > Any tips?
>
> My biggest tip is you can not mix debug and release in a visual studio
> project. If any part of your project or its dependent dlls are Release
> and you are using Debug it can and will crash. The reason is the
> memory heaps. There is a different memory heap for debug and release.
> You can not allocate memory in a Debug heap and free it in a Release
> heap or vise versa.
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110706/13a8e5d4/attachment.htm>


More information about the vtkusers mailing list