Hi Steve,
a) As mentioned, am opening a fresh issue. The following code crashes my app on Windows 7 ( where casablanca is loaded as a dll ) if the webserver is not online
auto current_context = task_continuation_context::use_default();
create_task([=]()
{
try
{
//Connect to the server and send local client information
m_ws_client->connect(serverAdd).then([=](task<void> conn_task) {
conn_task.get();
m_is_connected = true;
});
}
catch (websocket_exception& wex)
{
m_is_connected = false;
}
}, current_context);
b) Is there a method available in websocket_client is still active?
c) Any websocket sample projects available, all the projects in the distro now, viz BingRequest / Blackjack etc use http.
Regards
Vivek
Comments: Hi Steve, Thanks for your response. a) Can you please describe to me exactly what the symptoms of the crash are? What actually happens, are you getting an access violation or an exception going unhandled? As mentioned in the earlier thread, the app I am working with is protected by Themida guard, and not possible to run it in debug mode and capture trace and unhandled exception. The only thing I can report currently is the app window dissappears without any messages :). Will try out your suggested code and revert. b) "There are no websocket client examples in the repository on CodePlex." Very strange, as the whole library is about websockets and no websocket examples are provided, request you to add atleast one example. Regards Vivek
a) As mentioned, am opening a fresh issue. The following code crashes my app on Windows 7 ( where casablanca is loaded as a dll ) if the webserver is not online
auto current_context = task_continuation_context::use_default();
create_task([=]()
{
try
{
//Connect to the server and send local client information
m_ws_client->connect(serverAdd).then([=](task<void> conn_task) {
conn_task.get();
m_is_connected = true;
});
}
catch (websocket_exception& wex)
{
m_is_connected = false;
}
}, current_context);
b) Is there a method available in websocket_client is still active?
c) Any websocket sample projects available, all the projects in the distro now, viz BingRequest / Blackjack etc use http.
Regards
Vivek
Comments: Hi Steve, Thanks for your response. a) Can you please describe to me exactly what the symptoms of the crash are? What actually happens, are you getting an access violation or an exception going unhandled? As mentioned in the earlier thread, the app I am working with is protected by Themida guard, and not possible to run it in debug mode and capture trace and unhandled exception. The only thing I can report currently is the app window dissappears without any messages :). Will try out your suggested code and revert. b) "There are no websocket client examples in the repository on CodePlex." Very strange, as the whole library is about websockets and no websocket examples are provided, request you to add atleast one example. Regards Vivek