Hi in my aplication I need both the server and client. For client it was better to use libcurl, but for server the Poco was great. But when I am trying do dealocate the server objet, it throws me some mistake in dbgdel.cpp in Microsoft platform SDK for Windows server 2003
I cannot debug this file, so I want ask if anybody have to resolved the same problem.
this is part of my code:
init (){
Poco:Thread *thread = enew Poco:Thread();
Poco:Net::SocketAddress sadr(hostAndPort);
Poco:Net::ServerSocket svs(sadr);
Poco:Net::HTTPServer *newsrv = new Poco:Net:HTTPServer(this, svs,
new Poco:Net:HTTPServerParams);
thread->start(*newsrv);
}
doSomething(){
}
destroy (){
newsrv->stop();
delete newsrv;
delete thread;
}
int main (){
init();
doSomething();
destroy();
return 0;
}
Is there something I do not see? Can anybody tell me if mistake is on my side or it is wrong behavior of Poco:Net:Server??
Thanks for any response or experiences.
Milan Krapek
Sorry that it looks so horible, but when I use some symbols as double : , it makes new line and so on, so the style is awful





