[Insight-users] Instabilities using VS6
Fabrice BERGER
f.berger at topsolid.com
Fri May 18 03:01:10 EDT 2007
Hi Luis,
Thx for your help !
Actually I have checked all is compiled with the same options (/MD mainly)
I did check (using dependency walker) that all loaded DLLs were correct
version release ones.
I tried compiling ITK in modes Release and MinSizeRel, but it leads every
time to the same behavior...
I was wondering if linking my DLL with option /STACK:xxx may cause
unstabilities when .EXE is not linked with this option...
Regards,
Fabrice
-----Message d'origine-----
De : Luis Ibanez [mailto:luis.ibanez at kitware.com]
Envoyé : mercredi 16 mai 2007 21:25
À : Fabrice BERGER
Cc : insight-users at itk.org
Objet : Re: [Insight-users] Instabilities using VS6
Hi Fabrice,
When you compile this code for Release:
Are you compiling "EVERYTHING* for the
same compilation mode (that is, Release) ?
If you attempt to mix object files that were
compiled for Release with others that were
compiled for Debug you will find run-time
unstabilities.
You may also verify the path that is being
used for loading the DLL (plugin). It is
easy to make the mistake of loading an old
version of a DLL...
Regards,
Luis
----------------------
Fabrice BERGER wrote:
> Hi all,
>
>
>
>
>
> I meet big instabilities using ITK in the following case :
>
> - ITK Version : 3.2
>
> - Compilator : Visual Studio 6 on Windows XP SP2
>
> - I compile with UNICODE activated (MFC,
)
>
> - I generate a DLL embedding ITK library for my use case ; this DLL (a
> plugin, indeed) is dynamically loaded by an executable which has nothing
> to do with.ITK.
>
> - I have absolutly no problems when running it in debug mode
>
> - In release mode, my application crashes when accessing some ITK
> functions (mainly DICOM reading stuff in my case), except when launched
> from depends.exe !!
>
> - When launching my application (still in release) from Visual Studio
> debugger, debug output stream states : « HEAP[top66.exe]: Invalid
> Address specified to RtlFreeHeap( 03D00000, 09029C70 ) »
>
>
>
> Any help on this matter would be greetly appreciated !
>
>
>
> Thx
>
>
>
> Fabrice.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list