RE: Debug vs release plugin and lib
Brought to you by:
rathmann
From: David D. <dav...@jr...> - 2007-02-24 13:18:00
|
=20 > -----Original Message----- > On Wednesday 21 February 2007 15:54, Jacob St=F8ren wrote: =20 > > I found out that the default build system makes it=20 > impossible to run a=20 > > debug Qt application using the release built Qwt. >=20 > I never heard of such a limitation and if it is true it would=20 > be impossible to use any release library in an application=20 > built debug mode. I think that this is normal Windows behaviour. Certainly with VC++ 6 = this can be the case. Windows has several different memory managers (6 I think). If you = allocate memory with one memory manager then you must free it with the same one. = If the Qwt library allocates memory which is then deleted by Qt (eg in the QObject destructor) then Qt and Qwt must be compiled using the same = memory manager. Since release and debug modes use different memory managers you = can only use a release library in a debug mode application if the = application does not delete memory allocated in the library.=20 Regards David |