wxWidgets/samples
Julian Smart f010ad4812 Applied patch [ 600051 ] DDE and TCP improvements and fixes
By Michael Fielding

As discussed on wx-dev. some fixes and improvements for Interprocess Communication (IPC), using DDE and TCP.

1. DDE buffers were using a global buffer
2. TCP buffers were allocated each time needed, and Request would have caused memory leaks had it been used.

Fixed these both by using a self-resizing buffer in wxConnectionBase. Changed samples and docs to reflect the improved (but backward compatible) internal buffer management. wxConnectionBase could (in future) use wxMemoryBuffer.

3. IPC sample had trouble closing, causing crash, when closing server using window X button.

Because it was (effectively) trying to delete a window in OnExit, when that window was already destroyed. Fixed by making IPCDialog and MyConnection remember if they'd destroyed each other. It's not elegant, but either the connection or the window could be deleted first.

4. Docs for wxDDE... and wxTCP... duplicated eachother, supposed to have same API. Some parts unclear.

Patch removes dde and tcp-specific files (including from tipc.tex and classes.tex), and explains how ipc.h selects for you which one to use based on platform. Some other misc clarifications.

6. Client sample was suffering apparent memory leak because of not deleting connection object, and had a hack in there to do that.

In fact this was due to the derived OnDisconnect not deleting itself, as it does in base class. Mentioned need to do it in docs, fixed sample so that it does.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 14:48:16 +00:00
..
artprov disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
calendar disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
caret updated CW exported xml projects 2002-08-24 20:57:15 +00:00
checklst updated CW exported xml projects 2002-08-24 20:57:15 +00:00
config updated CW exported xml projects 2002-08-24 20:57:15 +00:00
console added tests for wxString::To/FromAscii 2002-08-20 15:07:51 +00:00
controls made it compile with wxUniv (which doesn't have tooltips) 2002-08-27 20:26:56 +00:00
db use include "..." instead of <...> 2002-08-31 22:36:13 +00:00
dialogs Applied patch [ 600500 ] Tip-of-day: comments, translatable 2002-08-31 12:08:02 +00:00
dialup Patch [ 584078 ] Misc samples fixes from Dimitri Schoolwerth 2002-08-01 19:12:24 +00:00
dnd updated CW exported xml projects 2002-08-24 20:57:15 +00:00
docview updated CW exported xml projects 2002-08-24 20:57:15 +00:00
docvwmdi updated CW exported xml projects 2002-08-24 20:57:15 +00:00
dragimag updated CW exported xml projects 2002-08-24 20:57:15 +00:00
drawing disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
dynamic disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
erase disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
event disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
exec disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
font updated CW exported xml projects 2002-08-24 20:57:15 +00:00
grid updated CW exported xml projects 2002-08-24 20:57:15 +00:00
help updated CW exported xml projects 2002-08-24 20:57:15 +00:00
html disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
image updated CW exported xml projects 2002-08-24 20:57:15 +00:00
internat disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
ipc Applied patch [ 600051 ] DDE and TCP improvements and fixes 2002-09-01 14:48:16 +00:00
joytest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
keyboard updated CW exported xml projects 2002-08-24 20:57:15 +00:00
layout updated CW exported xml projects 2002-08-24 20:57:15 +00:00
listbox updated CW exported xml projects 2002-08-24 20:57:15 +00:00
listctrl added icons to virtual list mode 2002-08-27 09:38:11 +00:00
mdi updated CW exported xml projects 2002-08-24 20:57:15 +00:00
memcheck Added __WXX11__ tests where appropriate 2002-03-21 10:32:18 +00:00
menu updated CW exported xml projects 2002-08-24 20:57:15 +00:00
mfc patch from Dimitri fixing a few memory leaks and unTABbing the sources 2002-03-17 14:16:03 +00:00
minifram updated CW exported xml projects 2002-08-24 20:57:15 +00:00
minimal updated CW exported xml projects 2002-08-24 20:57:15 +00:00
mobile Attempts to reduce errors in compile farm for 2002-08-24 10:01:47 +00:00
multimon Applied patch [ 573644 ] wxDisplay for Mac (again) 2002-07-19 20:42:34 +00:00
nativdlg patch from Dimitri fixing a few memory leaks and unTABbing the sources 2002-03-17 14:16:03 +00:00
newgrid updated CW exported xml projects 2002-08-24 20:57:15 +00:00
notebook updated CW exported xml projects 2002-08-24 20:57:15 +00:00
oleauto Added __WXX11__ tests where appropriate 2002-03-21 10:32:18 +00:00
opengl disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
ownerdrw removed a few warnings and CW compilation problems (patch from Dimitri) 2002-03-27 18:43:13 +00:00
png disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
printing disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
proplist disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
propsize disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
regtest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
resource updated CW exported xml projects 2002-08-24 20:57:15 +00:00
richedit updated CW exported xml projects 2002-08-24 20:57:15 +00:00
rotate updated CW exported xml projects 2002-08-24 20:57:15 +00:00
sashtest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
scroll updated CW exported xml projects 2002-08-24 20:57:15 +00:00
scrollsub updated CW exported xml projects 2002-08-24 20:57:15 +00:00
sockets disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
splitter updated CW exported xml projects 2002-08-24 20:57:15 +00:00
statbar disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
stc Applied patch [ 571965 ] update stc contrib stuff 2002-06-23 14:01:57 +00:00
svg svg Unix fix 2002-06-21 09:46:32 +00:00
tab updated CW exported xml projects 2002-08-24 20:57:15 +00:00
taskbar disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
text updated CW exported xml projects 2002-08-24 20:57:15 +00:00
thread updated CW exported xml projects 2002-08-24 21:08:41 +00:00
toolbar updated CW exported xml projects 2002-08-24 21:08:41 +00:00
treectrl ignore files produced when building samples 2002-08-24 20:19:34 +00:00
treelay updated CW exported xml projects 2002-08-24 21:08:41 +00:00
typetest disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
validate updated CW exported xml projects 2002-08-24 21:08:41 +00:00
widgets updated CW exported xml projects 2002-08-24 21:08:41 +00:00
wizard disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
wxtest ignore files produced when building samples 2002-08-24 20:19:34 +00:00
xrc Applied [ 594925 ] Implement wxArtProvider and XRC together 2002-08-16 11:24:46 +00:00
.cvsignore ignore samples workspace files 2001-10-10 01:15:51 +00:00
configure added propsize to the list of samples 2002-08-21 18:41:23 +00:00
configure.in added propsize to the list of samples 2002-08-21 18:41:23 +00:00
makefile.b32 Applied docview patch 2002-04-12 13:15:44 +00:00
makefile.dos Applied docview patch 2002-04-12 13:15:44 +00:00
makefile.g95 Applied docview patch 2002-04-12 13:15:44 +00:00
Makefile.in replaced make with $MAKE 2000-03-11 16:38:01 +00:00
makefile.vc Applied docview patch 2002-04-12 13:15:44 +00:00
samples.dsw Applied docview patch 2002-04-12 13:15:44 +00:00