[fpc-devel] improving error message when forgot to use cthreads unit
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat Apr 28 10:36:37 CEST 2012
Hi,
When someone forgets to use the cthreads unit and creates a thread the
exception message is:
Semaphore init failed (possibly too many concurrent threads)
Can this message be improved for unix?
Can it check if the thread manager is valid and then emit something
like
Semaphore init failed (possibly too many concurrent threads or you forgot to use the cthreads unit in your program)
Of course 'cthreads' is just one possible thread manager, but afaik it
is commonly used, so it would give the programmer a hint into the
right direction.
Mattias
More information about the fpc-devel
mailing list