Kirix Support Forums

Visual Studio .NET 2003 Project Files and DLL support

Please post any wxAUI patches or modifications you've created here. Thanks!

Visual Studio .NET 2003 Project Files and DLL support

Postby Thies.Pfeiffer on Mon Apr 03, 2006 8:52 am

Hi,

I am currently working on Visual Studio .NET 2003 project files for wxAUI supporting Dll compilation and I wondered if anyone is either interested or has already done it/part of it and wants to share some thoughts.

yours,
Thies
Thies.Pfeiffer
Registered User
 
Posts: 4
Joined: Mon Apr 03, 2006 8:48 am

Postby automatix on Fri Apr 07, 2006 8:00 am

I would be very intresred in this and yes i did something similar (i think ) for MSVC 6 but there was a problem with memory leaks when using DLL builds.

You might have a look to

http://www.kirix.com/en/community/forums/viewtopic.php?t=43

and


http://www.kirix.com/en/community/forums/viewtopic.php?t=93

So maybe you find the right way :D

regards

lars
automatix
Registered User
 
Posts: 9
Joined: Wed Feb 15, 2006 4:23 am
Location: Germany

Memory Leak

Postby Thies.Pfeiffer on Fri Apr 07, 2006 8:45 am

Hi,

hmm. I just checked and my current solution also has a memory leak (~100 byte). But VS tells me the same for the static version, so that seems to be not an issue specific for the DLL, or am I missing something?

Alas, I will soon be ready to post a ZIP with my modified wxAUI, including the WXEXPORT definitions in the source and a little restructuring of the build directories to support for both DLL and Static targets in the base library and the sample.

ys,
Thies
Thies.Pfeiffer
Registered User
 
Posts: 4
Joined: Mon Apr 03, 2006 8:48 am

Postby automatix on Fri Apr 07, 2006 8:55 am

so i didn't got a project right here but i think in my static builds i dosn't got leaks..
automatix
Registered User
 
Posts: 9
Joined: Wed Feb 15, 2006 4:23 am
Location: Germany

Memory Leak

Postby Thies.Pfeiffer on Fri Apr 07, 2006 9:23 am

Hi,

with the DLL version WinDBG announces the following leak:
Detected memory leaks!
Dumping objects ->
{6084} normal block at 0x00EB4050, 100 bytes long.

and with the static version its:
Detected memory leaks!
Dumping objects ->
{5490} normal block at 0x00B1D248, 100 bytes long.
Data: <\ ] @ ] > 5C D6 5D 00 00 00 00 00 40 D6 5D 00 00 00 00 00

Both are debug versions of the wxauitest sample from the library...

So in my case it really does not seem to be a static/dll issue.

ZIPPED project coming soon.

cu,
Thies
Thies.Pfeiffer
Registered User
 
Posts: 4
Joined: Mon Apr 03, 2006 8:48 am

Postby automatix on Fri Apr 07, 2006 9:29 am

so i'm back i create a project ..

in static link version of wxAUI with dynamic wxWidgets

Code: Select all

[3208] 16:23:02: c:\wxWidgets-2.6.2\src\msw\dib.cpp(298): 'Loading DIB from file' failed with error 0x00000002 (das System kann die angegebene Datei nicht finden.).

[3208] 16:23:15: exit


first dosn't matter is only dib image

on dynamic version i get the mentioned leaks

so imho must be problem with patched declaration
automatix
Registered User
 
Posts: 9
Joined: Wed Feb 15, 2006 4:23 am
Location: Germany

DLL Mod

Postby Thies.Pfeiffer on Fri Apr 07, 2006 9:38 am

Hi,

so here is my repackaging of wxAUI 0.9.1 with patched files to support DLLs.

You can download the ZIP package here: http://thies.agentensysteme.de/files/wxaui-0.9.1-dllmod.zip.

The changes are described in the changes.txt in the ZIP.

ys,
Thies
Thies.Pfeiffer
Registered User
 
Posts: 4
Joined: Mon Apr 03, 2006 8:48 am

Postby automatix on Mon Apr 10, 2006 4:32 am

:D i checked it out !!! great ! works!! without memory leaks!!!

youre right your mod works well --- no leaks if i use it with my own code --
example code leaks!! imho it depending on multiple center panes but i'm not sure

thx to ya man :mrgreen:
automatix
Registered User
 
Posts: 9
Joined: Wed Feb 15, 2006 4:23 am
Location: Germany

Return to wxAUI Patches & Modifications