Hi!
I have now done a few tests regarding the ASyncProxy class I mailed about.
The original problem arised when compiling with MSVS 2010, using boost 1.44
installed with the boost pro installer package. This yielded a bad_cast
exception thrown whenever a request was made.
Then I decided to test it on my Ubuntu machine. I installed boost 1.45 using
bjam. Everything worked fine. I got no exception and the
connection.write("hello") indeed sent that very response to my browser. I
concluded that I should probably build boost 1.45 on my windows machine, which
is what I did today. Following your advice I also checked out cpp-netlib from
the master branch of the git repository, and used that instead of the download.
Originally I got a compile error, but once I included boost/or.hpp in the
boost/network/version.hpp file it compiled. However, it still does not work on
my windows distribution, while it does on my ubuntu distribution. I still get a
bad_cast exception thrown.
Do you have any idea what might be the problem? Any known compiler weirdness
regarding MSVC 2010 vs g++? I am using firefox both on windows and on my ubuntu
machine, they both issued GET requests, difference was the user-agent header.
Thanks for any and all replies.
Best regards,
Max Malmgren
________________________________________
From: Oleg Malashenko [[email protected]]
Sent: Wednesday, January 19, 2011 4:15 AM
To: C++ Networking Library Developers Mailing List
Subject: Re: [cpp-netlib-devel] cpp-netlib async server request - bad cast
exception thrown
Hello Max,
On 18.01.2011 02:11, Max Malmgren wrote:
> I have a problem using the asynchronous server version of the
> cpp-netlib. As soon as I make a request a bad_cast exception is cast on
> the thread that ran .run().
Dean has already spotted the problem in ASyncProxy::operator().
Apart of that please consider using master or 0.8-devel branch of
git://github.com/mikhailberis/cpp-netlib.git until 0.8.1 is released:
there are important fixes to async_connection.
--
Best regards,
Oleg Malashenko.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel