Hello Wim, That's right. The problem was in boost 1.48. although I didn't use codecvt_facet.
Now, with boost 1.49. application works fine. Best regards, Marin. "Wim Dumon" je napisao u poruci interesnoj grupi:CAJ2=PVSn1VEb5oma=m=+NY0gheb_OUabo5mQXTArd+1_A3=a...@mail.gmail.com... Hello Marin, It looks like the conversion inside boost.filesystem from std::string to std::wstring crashes. Neither the in or out pointer for the strings are null, yet you get a violation for reading out NULL. Could it then be the codecvt facet which is null? Did you modify the C++ locale? A quick google led me to believe that you ran into this bug: https://svn.boost.org/trac/boost/ticket/6320 Best regards, Wim. Op 13 maart 2012 12:35 heeft Marin Lukovic <ljiga...@gmail.com> het volgende geschreven: > Hello Wim, thank you for reply, > > I think that access rights are not problem becouse in most cases those > files > were read successfuly. That exception triggers only occasionally. > In crash moment I checked that file with Unlocker. It turned out that the > file is already locked by my application. > > Here is stack trace: >> msvcp90d.dll!std::codecvt<unsigned short,char,int>::in(int & _State=0, >> const char * _First1=0x00000000165a3e80, const char * >> _Last1=0x00000000165a3ec1, const char * & _Mid1=0x0000000172ef8720, >> unsigned short * _First2=0x0000000015bbda80, unsigned short * >> _Last2=0x0000000015bbdc80, unsigned short * & _Mid2=0x0000000015bbd9c0) >> Line 913 + 0x5 bytes C++ > NetworkConfigurationRepository.exe!`anonymous > namespace'::convert_aux(const char * from=0x00000000165a3e80, const char * > from_end=0x00000000165a3ec1, wchar_t * to=0x0000000015bbda80, wchar_t * > to_end=0x0000000015bbdc80, > std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > > & target="", const std::codecvt<wchar_t,char,int> & cvt={...}) Line 84 > + > 0x51 bytes C++ > > NetworkConfigurationRepository.exe!boost::filesystem3::path_traits::convert(const > char * from=0x00000000165a3e80, const char * from_end=0x00000000165a3ec1, > std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > > & to="", const std::codecvt<wchar_t,char,int> & cvt={...}) Line 167 > C++ > > NetworkConfigurationRepository.exe!boost::filesystem3::path_traits::dispatch<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > > >() + 0xdb bytes > > NetworkConfigurationRepository.exe!boost::filesystem3::path::path<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >() + 0x68 bytes > > NetworkConfigurationRepository.exe!http::server::StaticReply::StaticReply() > + 0x406 bytes > > NetworkConfigurationRepository.exe!http::server::RequestHandler::handleRequest() > + 0xb49 bytes > > NetworkConfigurationRepository.exe!http::server::Connection::handleReadRequest0() > + 0x339 bytes > > NetworkConfigurationRepository.exe!http::server::Connection::handleReadRequest() > + 0x83 bytes > > NetworkConfigurationRepository.exe!boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned > __int64>::call<boost::shared_ptr<http::server::Connection>,boost::system::error_code > const ,unsigned __int64>() + 0x5f bytes > > NetworkConfigurationRepository.exe!boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned > __int64>::operator()<boost::shared_ptr<http::server::Connection> >() + > 0x5e > bytes > > NetworkConfigurationRepository.exe!boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection> > >,boost::arg<1>,boost::arg<2> > > > >::operator()<boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned __int64>,boost::_bi::list2<boost::system::error_code > const > &,unsigned __int64 const &> >() + 0x8a bytes > > NetworkConfigurationRepository.exe!boost::_bi::bind_t<void,boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned > __int64>,boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection> > >,boost::arg<1>,boost::arg<2> > > >::operator()<boost::system::error_code,unsigned __int64>() + 0x77 bytes > > NetworkConfigurationRepository.exe!boost::asio::detail::binder2<boost::_bi::bind_t<void,boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned > __int64>,boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection> > >,boost::arg<1>,boost::arg<2> > >,boost::system::error_code,unsigned > __int64>::operator()() + 0x3f bytes > > NetworkConfigurationRepository.exe!boost::asio::asio_handler_invoke<boost::asio::detail::binder2<boost::_bi::bind_t<void,boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned > __int64>,boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection> > >,boost::arg<1>,boost::arg<2> > >,boost::system::error_code,unsigned > __int64> >() + 0x45 bytes > > NetworkConfigurationRepository.exe!boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<boost::_bi::bind_t<void,boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned > __int64>,boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection> > >,boost::arg<1>,boost::arg<2> > >,boost::system::error_code,unsigned > __int64>,boost::_bi::bind_t<void,boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned > __int64>,boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection> > >,boost::arg<1>,boost::arg<2> > > >() + 0x6a bytes > > NetworkConfigurationRepository.exe!boost::asio::detail::win_iocp_socket_recv_op<boost::asio::mutable_buffers_1,boost::_bi::bind_t<void,boost::_mfi::mf2<void,http::server::Connection,boost::system::error_code > const &,unsigned > __int64>,boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection> > >,boost::arg<1>,boost::arg<2> > > >::do_complete() + 0x16e bytes > > NetworkConfigurationRepository.exe!boost::asio::detail::win_iocp_operation::complete(boost::asio::detail::win_iocp_io_service > & owner={...}, const boost::system::error_code & ec={...}, unsigned > __int64 > bytes_transferred=445) Line 45 C++ > > NetworkConfigurationRepository.exe!boost::asio::detail::win_iocp_io_service::do_one(bool > block=true, boost::system::error_code & ec={...}) Line 397 C++ > > NetworkConfigurationRepository.exe!boost::asio::detail::win_iocp_io_service::run(boost::system::error_code > & ec={...}) Line 159 + 0x17 bytes C++ > NetworkConfigurationRepository.exe!boost::asio::io_service::run() > Line > 59 + 0x13 bytes C++ > NetworkConfigurationRepository.exe!Wt::WIOService::run() + 0x41 bytes > > NetworkConfigurationRepository.exe!boost::_mfi::mf0<void,Wt::WIOService>::operator()() > + 0x40 bytes > > NetworkConfigurationRepository.exe!boost::_bi::list1<boost::_bi::value<Wt::WIOService > *> > >::operator()<boost::_mfi::mf0<void,Wt::WIOService>,boost::_bi::list0>() > + 0x5b bytes > > NetworkConfigurationRepository.exe!boost::_bi::bind_t<void,boost::_mfi::mf0<void,Wt::WIOService>,boost::_bi::list1<boost::_bi::value<Wt::WIOService > *> > >::operator()() + 0x60 bytes > > NetworkConfigurationRepository.exe!boost::detail::thread_data<boost::_bi::bind_t<void,boost::_mfi::mf0<void,Wt::WIOService>,boost::_bi::list1<boost::_bi::value<Wt::WIOService > *> > > >::run() + 0x31 bytes > NetworkConfigurationRepository.exe!boost::`anonymous > namespace'::thread_start_function(void * param=0x0000000000330fe0) Line > 176 > + 0x10 bytes C++ > msvcr90d.dll!_callthreadstartex() Line 348 + 0x17 bytes C > msvcr90d.dll!_threadstartex(void * ptd=0x0000000002158ef0) Line 331 > C > kernel32.dll!0000000076bc652d() > [Frames below may be incorrect and/or missing, no symbols loaded for > kernel32.dll] > ntdll.dll!0000000076f0c521() > > > Best regards, > Marin Lukovic > > > > > > "Wim Dumon" je napisao u poruci interesnoj > grupi:CAJ2=pvq4prx0h-nqojgkz6t2buhx6i3ciuzqyprd1nquiir...@mail.gmail.com... > > Hello Martin, > > There is in principle nothing wrong with your method of using Wt. It > may have to do with access rights, since your application is running > as a service and thus not as a normal user... > > Can you show the stack trace at the moment of this exception? > > Best regards, > Wim. > > Op 9 maart 2012 14:09 heeft Marin Lukovic > <ljiga...@gmail.com> het > volgende geschreven: >> Hello, >> >> Occasionally I get this error running witty application. >> >> "Unhandled exception in app.exe: ... Access violation reading location >> 0x0000000000" >> >> Exception is triggered in file "xlocale" file. There is variable in >> xlocale >> that contains resource file path everytime when exception occurs. >> Referenced >> file is always one of resource files (.css, .jpg, etc.). It seems that >> the >> problem is in resource file reading. >> >> Witty application is running as part of windows service in separate >> thread. >> >> Does anybody has idea why it happens and how to fix this issue? >> >> Thank you, >> Marin Lukovic >> >> >> >> ------------------------------------------------------------------------------ >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> witty-interest mailing list >> witty-interest@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/witty-interest > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest