Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Asio server application close get "This application has requested the Runtime to terminate it in an unusual way."
From: Igor R (boost.lists_at_[hidden])
Date: 2010-03-09 08:26:31


If I understand correctly, you work with MSVC. Then you can use its
IDE/Debugger to run and debug your server.
Just compile your project in "debug" mode, i.e. without optimizations.
Remove SEH __try/__except filters/handlers from your code. Go to
Debug-->Exceptions menu. In the "Thrown" column select all the list.
Now run your server in the IDE and try reproducing the issue. When it
occurs and an exception is thrown, the IDE stops and you can analyze
the problem.

I guess you've got some invalid memory access, so a general
recommendation is to avoid the manual control over objects life-time
-- instead, use smart-pointers (shared_ptr, shared_from_this idiom);
also avoid using c-style arrays -- stick with std::vector instead.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net