Index: /issm/trunk-jpl/src/c/shared/Threads/LaunchThread.cpp
===================================================================
--- /issm/trunk-jpl/src/c/shared/Threads/LaunchThread.cpp	(revision 14053)
+++ /issm/trunk-jpl/src/c/shared/Threads/LaunchThread.cpp	(revision 14054)
@@ -31,4 +31,8 @@
 	pthread_t      *threads = NULL;
 	pthread_handle *handles = NULL;
+
+	/*check number of threads*/
+	if(num<1)    _error_("number of threads must be at least 1");
+	if(num>2000) _error_("number of threads seems to be too high ("<<num<<">2000)");
 
 	/*dynamically allocate: */
