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 
<[email protected]> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to