From cf1f5367d2a87cb0585009f343eeb3350efbb076 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 21 Aug 2012 09:39:49 +0200 Subject: fixed singleton double-instance problem on Windows, not a really nice solution --- TODOS | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'TODOS') diff --git a/TODOS b/TODOS index f672b09..a0a396e 100755 --- a/TODOS +++ b/TODOS @@ -1,5 +1,14 @@ - singleton with registered pointers, so they can be shared between - loadable modules on Windows, example is the logger singleton currently + loadable modules on Windows, example is the logger singleton currently: + - exported data segments + #pragma data_seg("SHARED") + #pragma data_seg() + #pragma comment(linker, "/section:SHARED,RWS") + - http://support.microsoft.com/kb/168958/en-us + - http://www.xing.com/net/moderncpp/allgemeines-zu-c-101269/singletons-in-dll-s-32375749 + - http://stackoverflow.com/questions/1880052/c-duplicated-static-member + - http://stackoverflow.com/questions/4911994/sharing-a-global-static-variable-between-a-process-and-dll + - http://www.ogre3d.org/forums/viewtopic.php?p=75622&sid=ce193664e1d3d7c4af509e6f4e2718c6 - rewrite logger as proper singleton - use traits in rewindinputstream, alternative wrappers for char/string traits depending on underlying io stream -- cgit v1.2.3-54-g00ecf