From 70f178a4778b9cfe4eafa47027f50bc75c696d8f Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 7 Feb 2018 22:14:17 -0500 Subject: [PATCH] experimental to avoid invalid memory op on close --- simpledisplay.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpledisplay.d b/simpledisplay.d index aeb3cf3..f708f2b 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -2331,7 +2331,7 @@ struct EventLoopImpl { int pulseFd = -1; version(linux) ep.epoll_event[16] events = void; } else version(Windows) { - Timer pulser; + static Timer pulser; // this is static so the GC doesn't try to reap it; we want to manage it ourselves HANDLE[] handles; }