www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - wxChoice

reply Craig Bowlas <craigbowlas yahoo.co.uk> writes:
Hi,

I have a problem with the wxChoice widget,  I have duplicated this
behaviour  with the controls sample and so I am almost sure it's not me :)

If I click to expand the choice box and drag to the desired item without
releasing the mouse button, then all is well.  If on the other hand I click
once on the widget to expand the choice list and release the mouse button,
then move to the desired item and click it, the program often crashes.
This behavior appears to occur using wxWidgets 2.6.0 and I think on at
least some of the later 2.5.x builds.

Any ideas.  I am using the current version of dmc on Windows 98 SE.  On
Windows XP I get a similar problem, instead of a program crash the choice
list folds itself up again and ignores the new selection in the
circumstance that causes the crash with 98.

I am using the latest platform SDK and stlport 4.5.3.

Regards

Craig

Crash Dump Created

CONTROLS caused an invalid page fault in
module USER.EXE at 0008:00004536.
Registers:
EAX=0002fdcc CS=1757 EIP=00004536 EFLGS=00000246
EBX=00000000 SS=77cf ESP=00000002 EBP=00d10016
ECX=0002fdcc DS=1687 ESI=0002fe28 FS=0f4f
EDX=00000000 ES=8c9f EDI=0002fdcc GS=0000
Bytes at CS:EIP:
c8 04 00 00 66 57 66 33 db 66 8b 4e 06 66 8b 7e 
Stack dump:
17574438 0002fdcc 0002fdcc 0002fe28 0002fdcc 44af002e 00011757 0002fe28
0002fdcc 0002fe28 0002fdcc 44af0046 00011757 0002fe28 0002fdcc 0002fe28 
Jul 05 2005
parent reply "W這dzimierz Skiba" <abx abx.art.pl> writes:
Craig Bowlas <craigbowlas yahoo.co.uk> wrote in
news:1jv2hfpporm81$.iew6860fl5uv$.dlg 40tude.net: 
 I have a problem with the wxChoice widget,  I have duplicated this
 behaviour  with the controls sample and so I am almost sure it's not
 me :) 

I just tried BCC (unicode, release) and DMC (ansi, debug) builds and I cannot duplicate this following your descruption.
 I am using the latest platform SDK and stlport 4.5.3.

I use latest SDK with free VC and doesn't show this problem too so most probably it's stlport. Could you please try without stlport usage? ABX
Jul 06 2005
parent reply Craig Bowlas <craig bowlas.demon.co.uk> writes:
On Wed, 6 Jul 2005 07:24:43 +0000 (UTC), W這dzimierz Skiba wrote:

 Craig Bowlas <craigbowlas yahoo.co.uk> wrote in
 news:1jv2hfpporm81$.iew6860fl5uv$.dlg 40tude.net: 
 I have a problem with the wxChoice widget,  I have duplicated this
 behaviour  with the controls sample and so I am almost sure it's not
 me :) 

I just tried BCC (unicode, release) and DMC (ansi, debug) builds and I cannot duplicate this following your descruption.
 I am using the latest platform SDK and stlport 4.5.3.

I use latest SDK with free VC and doesn't show this problem too so most probably it's stlport. Could you please try without stlport usage? ABX

Hi, I have rebuilt my app using the default stl instead of stlport and the behavior is the same on XP, but is now apparently working on Win98. I hate intermittent bugs! I will use this build for a while and see if it does fail eventually. The controls sample did seem to work correctly on XP with stlport removed from the include path. Regards Craig
Jul 06 2005
parent reply Craig Bowlas <craig bowlas.demon.co.uk> writes:
On Wed, 6 Jul 2005 21:40:30 +0100, Craig Bowlas wrote:

 On Wed, 6 Jul 2005 07:24:43 +0000 (UTC), W這dzimierz Skiba wrote:
 
 Craig Bowlas <craigbowlas yahoo.co.uk> wrote in
 news:1jv2hfpporm81$.iew6860fl5uv$.dlg 40tude.net: 
 I have a problem with the wxChoice widget,  I have duplicated this
 behaviour  with the controls sample and so I am almost sure it's not
 me :) 

I just tried BCC (unicode, release) and DMC (ansi, debug) builds and I cannot duplicate this following your descruption.
 I am using the latest platform SDK and stlport 4.5.3.

I use latest SDK with free VC and doesn't show this problem too so most probably it's stlport. Could you please try without stlport usage? ABX

Hi, I have rebuilt my app using the default stl instead of stlport and the behavior is the same on XP, but is now apparently working on Win98. I hate intermittent bugs! I will use this build for a while and see if it does fail eventually. The controls sample did seem to work correctly on XP with stlport removed from the include path. Regards Craig

Hi, A quick update, the newly built (using stl not stlport) version has just crashed. Regards Craig
Jul 07 2005
parent reply "W這dzimierz Skiba" <abx abx.art.pl> writes:
Craig Bowlas <craig bowlas.demon.co.uk> wrote in
news:1qn8kqnfgsa6n.fd61iysgbv15.dlg 
40tude.net:

 A quick update, the newly built (using stl not stlport) version has just
 crashed.

Thanks for your testing. Can you continue by checking without external SDK? I mean, start from pure free dmc... ABX
Jul 07 2005
parent Craig Bowlas <craig bowlas.demon.co.uk> writes:
On Thu, 7 Jul 2005 11:20:55 +0000 (UTC), W這dzimierz Skiba wrote:

 Craig Bowlas <craig bowlas.demon.co.uk> wrote in
news:1qn8kqnfgsa6n.fd61iysgbv15.dlg 
 40tude.net:
 
 A quick update, the newly built (using stl not stlport) version has just
 crashed.

Thanks for your testing. Can you continue by checking without external SDK? I mean, start from pure free dmc... ABX

Hi, I have just built wxWidgets 2.6.1 using the DMC CD version and only the CD version of STL referenced. The behavior as above was still found. I have now created a small app (using an unregistered version of DialogBlocks) containing only a single frame with just a wxChoice with a compile time set list of seven items. This I have compiled against my 2.6.1 build mentioned above and this also shows the behavior as described in the original post. This new test app does not actually use STL or much else, indeed the code is entirely auto-generated by DialogBlocks. I can send you sources for this test app if you like. Regards Craig
Jul 08 2005