progschj / ThreadPool

A simple C++11 Thread Pool implementation
zlib License
7.64k stars 2.21k forks source link

Access violation reading location exception throw out #39

Open machenjie opened 7 years ago

machenjie commented 7 years ago

plantform: VS2015

code:

include

int main() { ThreadPool pool(254); }

error: Exception thrown at 0x73163218 (tmmon.dll) in xxx.exe: 0xC0000005: Access violation reading location 0x00D55180. If there is a handler for this exception, the program may be safely continued.

How can I fix it? When I use try..catch to surround the ThreadPool, it does not work, the error also occurs.

yxbh commented 7 years ago

Googling tmmon.dll shows that it is Trend Micro related. Try disabling your anti-virus.

machenjie commented 7 years ago

OK, thanks.