My interactive exhibition program send search query per 5 sec. (http://
search.twitter.com/search.atom?q=love OR hate&since_id)  And parcing
only firstpage(wthin 15 search result).


I received "Timeoutexception" when 3~4 hours after running.

I want to know why ㅜㅜ

--------------------------------------------------------------------------------------------------------------------------------
bool ofxXmlSettings::loadUrl(string url){
        bool loadOkay = false;
        //std::string xmlString;
        string xmlString;

        // Register Poco HTTPStreamFactory
        if(!HTTPStreamFactoryLoaded) {
                HTTPStreamFactory::registerFactory();
                HTTPStreamFactoryLoaded = true;
        }

        // URIStreamOpener may throw an exception
        try {
                // Open URI Stream
        std::istream* streamOpener;
                //istream* streamOpener;

                path = url;

                try{
            URIStreamOpener::defaultOpener();
            try {
                streamOpener =
URIStreamOpener::defaultOpener().open(path); --> make error line
            }
            catch (Poco::Exception& e){
                std::string what = e.displayText();
                                //string what = e.displayText();
                                cout<<what<<endl;
                //printf("%s\n", what.c_str());
            }
                }
        catch (Poco::Exception& e){
            std::string what = e.displayText();
                        //string what = e.displayText();
            cout<<what<<endl;
        }
                std::auto_ptr<std::istream> pStr(streamOpener);
                //auto_ptr<istream> pStr(streamOpener);

                // Copy Stream to string
                StreamCopier::copyToString(*pStr.get(), xmlString);

                // Load string
                loadOkay = loadString(xmlString);
        }
        catch (Poco::Exception& e){
        std::string what = e.displayText();
                //string what = e.displayText();
        printf("%s\n", what.c_str());
        throw;
   }

        return loadOkay;
}

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk

Reply via email to