Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

[OfxHttpServer] crash on mutex

$
0
0

@SixtyOne wrote:

Hello everybody, i have a problem with ofxHttpServer.
I would like to create a basic server for receive post request. So for this, i have my simple server class :

    // .h
	/// \brief A simple file server implementation.
	class SimpleServer : public BaseServer_<BaseServerSettings, SimpleSessionStore>
	{
	public:

		/// \brief Create a SimpleServer with the provided Settings.
		/// \param settings The Settings used to configure the server.
		SimpleServer(const BaseServerSettings& settings = BaseServerSettings());

		/// \brief Destroy the BasicServer.
		virtual ~SimpleServer();

		virtual void setup(const BaseServerSettings& settings);
	};

    // .cpp
	SimpleServer::SimpleServer(const BaseServerSettings& settings) :
		BaseServer_<BaseServerSettings, SimpleSessionStore>(settings)
	{

	}

	SimpleServer::~SimpleServer()
	{

	}

	void SimpleServer::setup(const BaseServerSettings& settings)
	{
		BaseServer_<BaseServerSettings, SimpleSessionStore>::setup(settings);
	}
}

Compile is fine, but, on constructor i crash in mutex

And i have no idea why.

I include all lib from poco in visual studio, and add path in right place. So i don’t know if my problem is code or settings of my project. Someone can help me please ?

Have a nice day

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles