c++ - boost::asio only works when run within Visual Studio -



c++ - boost::asio only works when run within Visual Studio -

i using boost::asio::io_service , boost::asio::deadline_timer secondary (i.e. non-gui) worker thread. works when programme run within visual studio (2010). however, when run release executable outside of visual studio, async_wait()/run() combination doesn't seem anything.

i have confirmed run() indeed block. have confirmed debug executable works fine, release executable not work (i.e. function specified in async_wait() not run).

perhaps there project setting, optimization need disable, or something?

(reposting comment question can marked answered)

you have uninitialized variable somewhere, i.e. default-initialized object of scalar or pod type.

c++ visual-studio multithreading boost boost-asio

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -