Hi John,<div><br></div><div>Thanks for the tip.</div><div>I have both Debug and Release builds of VTK.I link relevant libraries depend on the build.</div><div>I don't use VS for my development.I use Eclipse CDT / CMake /NMAKE on Windows .</div>
<div>I am wondering whether this is a compiler related issue , because Release build using MINGW works fine.</div><div><br></div><div>thanks</div><div>umanga</div><div><br><br><div class="gmail_quote">On 5 July 2011 23:05, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Jul 4, 2011 at 9:22 PM, Ashika Umanga Umagiliya<br>
<<a href="mailto:aumanga@biggjapan.com">aumanga@biggjapan.com</a>> wrote:<br>
> Greeting all,<br>
> In my application ,I use QVTKWidget with QT 4.7.<br>
> Everything work fine with Mingw Release/Debug and on Linux/GCC.<br>
> Now I am in the process of compiling 64Bit version using MS C++ Compiler on<br>
> Windows 7 (version string : Microsoft (R) C/C++ Optimizing Compiler Version<br>
> 16.00.30319.01 for x64)<br>
> I can run the application in Debug mode , but application crashes in Release<br>
> mode when I open my QVTKWidget.<br>
> Any tips?<br>
<br>
</div>My biggest tip is you can not mix debug and release in a visual studio<br>
project. If any part of your project or its dependent dlls are Release<br>
and you are using Debug it can and will crash. The reason is the<br>
memory heaps. There is a different memory heap for debug and release.<br>
You can not allocate memory in a Debug heap and free it in a Release<br>
heap or vise versa.<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br></div>