Multiple instances
Hans Karlsen (talk | contribs) (Created page with "If you get a error like this: none|thumb|629x629px The Singleton class SOMECLASSNAME has multiple instances This means that for some reason t...") |
Hans Karlsen (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
This means that for some reason there are more than one object of the class that is marked as Singleton - and there should per definition only be one. | This means that for some reason there are more than one object of the class that is marked as Singleton - and there should per definition only be one. | ||
To fix this start the MDriven ocl debugger towards the same database that has the error. | To fix this start the MDriven [[ocl debugger]] towards the same database that has the error. | ||
Select all the objects of the given class: SOMECLASSNAME.allinstances, easiest via a seeker (1 & 2), then delete all but 1 of the objects(4&5). | Select all the objects of the given class: SOMECLASSNAME.allinstances, easiest via a seeker (1 & 2), then delete all but 1 of the objects(4&5). | ||
[[File:2023-08-09 10h00 45.png|none|thumb|1136x1136px]] | [[File:2023-08-09 10h00 45.png|none|thumb|1136x1136px]] |
Revision as of 08:09, 9 August 2023
If you get a error like this:
The Singleton class SOMECLASSNAME has multiple instances
This means that for some reason there are more than one object of the class that is marked as Singleton - and there should per definition only be one.
To fix this start the MDriven ocl debugger towards the same database that has the error.
Select all the objects of the given class: SOMECLASSNAME.allinstances, easiest via a seeker (1 & 2), then delete all but 1 of the objects(4&5).
This page was edited more than 10 months ago on 03/18/2024. What links here