Opened 5 years ago
Last modified 5 years ago
#13364 new Bugs
xxx please delete - it was my fault xxx
Reported by: | anonymous | Owned by: | chris_kohlhoff |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.66.0 | Severity: | Showstopper |
Keywords: | boost::asio::steady_timer boost::dll | Cc: |
Description
The steady_timer is working fine when it is started in the executeable. By starting the steady_timer in the dll, the timer expires immediately. I think this is a bug, isn't it?
Change History (2)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Summary: | steady_timer doesn't work in dll → xxx please delete - it was my fault xxx |
---|
Note:
See TracTickets
for help on using tickets.
I'm working with Visual Studio 2017 V15.5.2. Sorry, can't add attachments. So i list the source here:
api.h:
#include <boost/asio.hpp>
class my_api { public:
};
dll.cpp
#include <iostream> #include <boost/dll.hpp> #include "api.h"
class my_plugin : public my_api { public:
};
static boost::shared_ptr<my_api> createPlugin() {
}
BOOST_DLL_ALIAS(
)
AsioProblem.cpp:
#include "stdafx.h"
#include <boost/dll/import.hpp> #include <boost/function.hpp> #include <boost/asio.hpp> #include <iostream> #include "../DLL/api.h"
namespace dll = boost::dll;
int main() {
}