
25 Oct
2011
25 Oct
'11
8:13 a.m.
On Tue, Oct 25, 2011 at 03:52, Christer Borgqvist
"Christer Borgqvist"
skrev i meddelandet news:000001cc8ef1$fac46820$c500a8c0@christer618c56... I have a code like this
when execute the IdHTTPServDataEMVObj.Exequte(); it will throw a std::runtime_error if running one thread all is fine, the catch is excequted, but if running two threads then the application crash. What is the problem, have i miss something
Your code doesn't look thread-safe. Try placing locks around variables that might be shared. Be careful in avoiding deadlock, though.