04-27-2009 10:54 AM
04-28-2009 01:37 PM
Can you post the parts in your code where you create the thread pool, define the thread function and the line that generates the error.
Can't the CVI library generate an error string for this error code?
04-29-2009 03:18 AM
The default stack size for Windows threads is 1 Mbyte. If you need more than this maybe you should use a different progamming approach; for example making more use of the heap.
JR
04-29-2009 07:35 AM
04-29-2009 10:21 AM
04-29-2009 02:39 PM
Can you try this:
status = CmtScheduleThreadPoolFunction (pool_handle, thread_function, thread_function_data, NULL); // "(int *)" deleted
static int CVICALLBACK thread_function (void *functionData)
{
int test;
test = *((int*)functionData);
...
}
05-04-2009 04:59 PM
Thanks for the help, but still no luck. In the debug configuration it game me a little bit more information.
Library function error (return value -- -14910).
Not enough storage is available to process this command.
is this a hard disk storage? the machine has plenty of disk space free 50+ GB. memory? thread stack size maybe? currently its whatever the defualt is. anyone know
05-05-2009 05:16 PM
To re-ask Mohan's question: Do the shipping CVI threadpool samples run fine, or do they also return this error? These samples would be in cvi/samples/utility/threading/ThreadPool.
We need this information to help you further.
05-06-2009 12:53 PM - edited 05-06-2009 12:54 PM
05-07-2009 09:48 AM