wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
6.12k stars 1.77k forks source link

IPC sample crashes after fast sending request commands to server #12955

Open wxtrac opened 13 years ago

wxtrac commented 13 years ago

Issue migrated from trac ticket # 12955

component: network | priority: normal

2011-02-20 00:37:50: madnut (Alex) created the issue


OS: Windows Vista GCC: MinGW 4.5.1

Steps to reproduce:

  1. Compile IPC sample using TCP implementation (wxUSE_DDE_FOR_IPC set to 0) in debug mode
  2. Launch server & client, connect client to server

3a. Click as fast as possible on 'Request' button in client's window until assert message is displayed (see screenshot attached). After closing client's window it crashes.

3b. Click as fast as possible on 'Poke' button. After several clicks server window stops showing Poke requests and if click any other commands the result will be the same.

Actually, I have the similar problems with IPC/TCP in my app, but it easier to reproduce it using ipc example.

I've noticed the issue in wxWidgets 2.9.1, but I've compared ipc/sockets sources in current trunk and it seems that there no significant changes since last release, so I've not tested ipc against latest trunk wx version

wxtrac commented 13 years ago

2011-02-20 00:38:18: madnut (Alex) uploaded file 5.png (24.7 KiB)

Socket assert 5.png

wxtrac commented 13 years ago

2011-02-20 00:42:16: madnut (Alex) commented


One more thing, I didn't have such issues with wx 2.8.11

wxtrac commented 13 years ago

2011-03-13 20:35:44: @vadz commented


Angel, would you be able to look at this too by chance? It looks like another manifestation of the same underlying wxSocket bug... TIA!

wxtrac commented 12 years ago

2012-01-08 23:30:09: madnut (Alex) commented


Looks like the cause is can be the same as in #11528 and issue is still reproducable as for wx 2.9.3. Are there any updates on this?

wxtrac commented 5 years ago

2019-07-31 07:06:31: @oneeyeman1 commented


This ticket is still stands - verified on Windows 7/NSVC 2010.