Ticket #96 (closed: fixed)
Singleton problems
Reported by: | Freddie Akeroyd | Owned by: | Nick Draper |
---|---|---|---|
Priority: | major | Milestone: | Iteration 6 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
It looks like you can create more than one instance of a singleton on Windows in Mandid, but not on linux. I believe this is due to all classes and data being marked DLLExport and none DLLImport so they all create a separate instance variable for the singleton.
Change History
comment:10 Changed 13 years ago by Matt Clarke
comment:11 Changed 13 years ago by Freddie Akeroyd
comment:12 Changed 13 years ago by Matt Clarke
comment:13 Changed 13 years ago by Matt Clarke
comment:14 Changed 13 years ago by Matt Clarke
comment:15 Changed 13 years ago by Matt Clarke
comment:16 Changed 13 years ago by Freddie Akeroyd
comment:17 Changed 13 years ago by Freddie Akeroyd
comment:18 Changed 13 years ago by Freddie Akeroyd
comment:19 Changed 13 years ago by Freddie Akeroyd
(In [760]) Workaround for logging problem. The static instance of the Logger gets created at a random time and causes problems for singletons that get created as part of other objects static constrcutors. As a workaround I have moved the Logger instance into the class itself for singletons.
Refs #96.
comment:20 Changed 13 years ago by Freddie Akeroyd
comment:21 Changed 13 years ago by Freddie Akeroyd
comment:22 Changed 13 years ago by Freddie Akeroyd
comment:23 Changed 13 years ago by Nick Draper
- Status changed from new to assigned
- Owner changed from Freddie Akeroyd to Nick Draper
comment:24 Changed 13 years ago by Nick Draper
- Status changed from assigned to closed
- Resolution set to fixed
comment:25 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 944
Note: See
TracTickets for help on using
tickets.
(In [724]) * Add in option on scons windows debug build (pass debug=1)
Refs #96.