[Rd] closing View windows after multiple View(x) crashes

Bill Dunlap bill at insightful.com
Tue Jul 29 23:03:59 CEST 2008


On Tue, 29 Jul 2008, Ben Bolker wrote:

>    That works like a charm.  Thanks!
>
>    Ben Bolker

Good.  Here is the patch I used.  (I didn't send it
earlier because my code still had a bunch of Rprintf
calls in it to track the event loop activity.

Index: src/modules/X11/dataentry.c
===================================================================
--- src/modules/X11/dataentry.c	(revision 46139)
+++ src/modules/X11/dataentry.c	(working copy)
@@ -1881,6 +1881,7 @@
 #endif
     XDestroyWindow(iodisplay, DE->iowindow);
     /* XCloseDisplay(iodisplay); */
+    Rsync(DE);
 }

 #define USE_Xt 1

Valgrind reports a slew of memory leaks when R closes
after using View(), but it didn't show any use of freed
or uninitialized memory after that change.

----------------------------------------------------------------------------
Bill Dunlap
Insightful Corporation
bill at insightful dot com

 "All statements in this message represent the opinions of the author and do
 not necessarily reflect Insightful Corporation policy or position."



More information about the R-devel mailing list