[DnD] unknown bug state

Christian Buhtz exsudat at gmx.de
Wed Aug 29 14:38:18 PDT 2007


Hi Tim

Tim Kosse schrieb:
> I tried it out and I can't find any problems. For me, DnD works fine in
> the patched sample and every other wx program I tried.

Interessting. Which system do you use? OS, Compiler, build-flags for wx,
etc?

btw: I am using wxSVN (tested a some other version, too!) compiled with
MinGW as unicode dynamic debug and compiled with MSVC60 as unicode dll
debug on WinXP SP2.

> 1) Memory corruption in your program. Stale pointers, buffer overflows,
> etc... can have really strange effects. You could use a memory checker
> to rule out this possibility. Under *nix, I can recommend Valgrind,
> under Windows I have so far only used a trial version of BoundsChecker.

I do not think so, because I can reproduce the bug in my own AND in a
(simple patched) wx-sample. The problem is not in my application!

> 2) Compiler error. From your earlier discussion it appears you're using
> MinGW, which still uses a rather old GCC version with known bugs.
> Wild guess: Are you by chance using precompiled headers? There's a known
> GCC (<4.0) bug with precompiled headers and wide character strings
> leading to strange problems.

I'm using "gcc version 3.4.2 (mingw-special). And I don't use
precompiled headers. I am using this MinGW environment to compile wx and
my own application.
But for the DnD sample I used MSVC60 to build wx and the sample.
The bug is in each environment.
But I am not able to compile the samples with MinGW (Code::Blocks
imported MSVC-projects are corrupt).

> 3) "DLL hell". Some third-party program or library is hooking some dnd
> related functions and causes this problem. Can you reproduce this issue
> on a freshly installed system?

There is just the wx-DLL and the standard win-DLLs.
I checked the samples on a fresh standard WinXP SP2 on a VirtualBox. The
result is the same.

In the SVN wx is the bug reproducable and in the 2.8_BRANCH not.

You can see here:
<http://miktion.rahner-edv.de/bus/dnd_svn.png>
<http://miktion.rahner-edv.de/bus/dnd_28.png>





More information about the wx-dev mailing list