Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MultiThreader::MultipleMethodExecute()
- {
- ....
- HANDLE process_id[ITK_MAX_THREADS];
- ....
- process_id[thread_loop] = (void *) _beginthreadex(0, 0, ....);
- if ( process_id == 0 )
- {
- itkExceptionMacro("Error in thread creation !!!");
- }
- ....
- }
- Most likely this is what should be written here: if ( process_id[thread_loop] == 0 )
- This suspicious code was found in ITK project by PVS-Studio static code analyzer.
- Warning message is:
- V600 Consider inspecting the condition. The 'process_id' pointer is always not equal to NULL. itkmultithreaderwinthreads.cxx 90
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment