#229 closed defect (fixed)
delete RNG results in a bus error
Reported by: | Peter | Owned by: | Jari Häkkinen |
---|---|---|---|
Priority: | major | Milestone: | yat 0.4 |
Component: | random | Version: | trunk |
Keywords: | Cc: |
Description
RNG* rng=RNG::instance(); delete rng;
Change History (4)
comment:1 Changed 16 years ago by
Status: | new → assigned |
---|
comment:2 Changed 16 years ago by
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 16 years ago by
This was a stupid fix. Removing the delete instance_ only removes a symptom of a badly implemented class. See ticket:228 for further improvements of the RNG class.
Note: See
TracTickets for help on using
tickets.
Should delete really be allowed for a singleton? No!
However the bus error is due to a stupid
in the RNG destructor.