Re: [Cppcms-users] Advice on debugging file upload
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-04-23 06:30:43
|
Two things. 1. This exception is thrown when you try to access a file (cppcms::widgets::file::value()) and the file was not uploaded. You can check if the file was uploaded by using cppcms::widgets::file::set() member function before using value. See: http://cppcms.com/cppcms_ref/latest/classcppcms_1_1widgets_1_1file.html#a56ee053415b1bd98944bb3599e3392b1 2. To debug this problem you should be able to see full stack backtrace in the log - and AFAIR it should work under Mac OS X, if not tell me. To check if backtrace works, please compile booster/lib/backtrace/test/test_backtrace.cpp As g++ -O0 -dynamic booster/lib/backtrace/test/test_backtrace.cpp -lbooster And see if you get stack trace when you run the program. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: doug livesey <bi...@gm...> >To: cpp...@li... >Sent: Sunday, April 22, 2012 11:08 PM >Subject: [Cppcms-users] Advice on debugging file upload > > >Hi -- I'm trying to develop an image server which raises the following error when I send a post request to create a new file: > > >2012-04-22 20:55:28; cppcms, error: Caught exception [File was not loaded] >0x10176c2b3: cppcms::cppcms_error::cppcms_error(std::string const&) + 0x63 in /usr/local/lib/libcppcms.1.dylib > (http_context.cpp:139) > > >Could anyone offer me any advice on good ways to start debugging to find the source of the error, here? >Thanks, > Doug. >------------------------------------------------------------------------------ >For Developers, A Lot Can Happen In A Second. >Boundary is the first to Know...and Tell You. >Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! >http://p.sf.net/sfu/Boundary-d2dvs2 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |