Home » U++ Library support » U++ Core » Pick problems
Pick problems [message #24533] |
Sat, 23 January 2010 10:14  |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
I get sometimes 'Pick broken semantic' error in my app and, as it is multithreaded, to locate them is becoming a nightmare.
Just today I've got one which I can't locate, and I'm thinking about some way to check if a container get picked just when it is.
So, it would be possible to add to containers a debug function like
BreakOnPick(bool brk = true);
which, if enabled, would throw a BREAK in debug mode, so the code that breaks pick semantics can be located more easy ?
Another stuff.... IsPicked() is missing from ArrayMap, because it's missing from AIndex template class.
Adding this to it :
bool IsPicked(void) const { return key.IsPicked() || hash.IsPicked(); }
Solves the issue.
Ciao
Max
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Apr 30 23:33:13 CEST 2025
Total time taken to generate the page: 0.02735 seconds
|