Closed Issue: Casablanca hangs my app when unloaded [309]
Hi, Am trying to use Casablanca as a dll in another third party exe on Windows 7. Everything works fine, except when closing the socket and unloading the dll. My close function is as follows```void...
View ArticleCommented Issue: Unloading the dll crashes the process [233]
I am using the 2.1.0 with the WebSocket support only.I wrapped my code (a plugin) within a dll that talks using websocket.- load my dll and casablanca dll in memory using LoadLibrary- use the websocket...
View ArticleClosed Issue: Unloading the dll crashes the process [233]
I am using the 2.1.0 with the WebSocket support only.I wrapped my code (a plugin) within a dll that talks using websocket.- load my dll and casablanca dll in memory using LoadLibrary- use the websocket...
View ArticleUpdated Release: C++ Rest SDK 2.4.0
OAuthFixed memory leak with OAuth 1 in the success case. #321websocket_clientAdded a new websocket_client class, websocket_client_class, that supports using callbacks instead for receiving messages and...
View ArticleEdited Issue: http_client - boost client hangs if an error is reported during...
This is a really weird bug that is high impact. For some reason if an error occurs and we call report_error/report_exception at any point when uploading a request body it doesn't seem to cause the task...
View ArticleNew Post: Exception on Wait()
Hi, I am having an issue with using wait, get etc. Basically anything that makes an Async call sync. I have a windows mobile 8.1 project in C#. We are using C++ for common functionality across platform...
View ArticleNew Post: Exception on Wait()
If i step through the "Wait()" code it generally works. Is it around thread safety in Windows Runtime Component?
View ArticleNew Post: Equivalent to HttpUtility.UrlEncode
Hi Pedro, Somehow this discussion slipped by my radar a bit here and went unanswered, sorry :). Yes our encoding APIs always encode a space character as %20, which is correct according to RFC 3986. We...
View ArticleCreated Issue: http_listener - read_to_end on request body into file stream...
Reported from the following discussion:http://casablanca.codeplex.com/discussions/573976#post1328648I am able to reproduce on Ubuntu 64bit debug as well, see my forked repository in branch...
View ArticleNew Post: How to build CPPRest 1.0 on MAC
thank Roschuma so I need to try with other sdk because my project is big project from adobe therefore change to -std=c++11 not good way. thanks,
View ArticleNew Post: Saving http_request.body() to file
Hi arekmarud, I wrote a test similar to what you describe and indeed encounter the bug using Ubuntu 64bit debug. I've opened a bug on Codeplex to track this. For now a workaround is to use...
View ArticleCommented Issue: http_listener - read_to_end on request body into file stream...
Reported from the following discussion:http://casablanca.codeplex.com/discussions/573976#post1328648I am able to reproduce on Ubuntu 64bit debug as well, see my forked repository in branch...
View ArticleNew Post: Interesting code in http_client.impl.h, pass by value of objects
Hi G, Yes I think a 'mess' of premature optimization and layer complexity has occurred here. What should really be done is just have the constructor take by const reference and avoid all these...
View ArticleNew Post: Interesting code in http_client.impl.h, pass by value of objects
Hi Steve, Yes passing by const& will solve for the moment this issue. The alternative will be to create as you said, move constructors(&&) for all objects involved. I kind of like this new...
View ArticleCommented Unassigned: Access violation when creating an http_client with...
I encountered an access violation when trying to use authentication for a client. Here is my code: http_client_config config; config.set_credentials(credentials(L"test", L"test")); http_client...
View ArticleNew Post: Exception on Wait()
Hi nate78, Are you calling wait() on the UI thread? If so that could be your problem, in the WIndows Runtime waiting on a task throws an exception. If you instead hook up a continuation and process the...
View ArticleCreated Unassigned: 2.3.0 : https connection leak under Linux [326]
Tried to upgrade from 2.2 to 2.3 with Linux 64 bits, however it appears that linux connection pool is not destroyed. I recompiled boost 1.57 and cpprest 2.3.0 with gcc 4.9 (I had to remove "-Werror" in...
View ArticleCommented Unassigned: Access violation when creating an http_client with...
I encountered an access violation when trying to use authentication for a client. Here is my code: http_client_config config; config.set_credentials(credentials(L"test", L"test")); http_client...
View ArticleNew Post: http_client_config and Platform Toolset v120_xp
Hi cbogdan, I think there actually is an issue here. Our NuGet package should take care of automatically defining CPPREST_TARGET_XP for you if you are using one of the toolsets targeting XP. I just...
View ArticleNew Post: POST method syntax
Hi Steven, I'm not sure which version you are using but in 2.3.0 we added some overloads on Windows to work with UTF-8 strings with the http_client using the correct http_client::request overload. It...
View Article