You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by "Combes, Chris M." <ch...@ngc.com> on 2006/01/10 21:39:03 UTC
Compiling Log4cxx 0.9.7 with Visual Studio .NET
I can build and run a simple app in Visual Studio 6.0 wth log4cxx 0.9.7.
However, if I build and run this app in Visual Studio .NET I get an
access violation as decribed below.
Visual Studio .NET must be doing something different.
Any ideas?
Thanks,
Chris
________________________________
From: Combes, Chris M. [mailto:chris.combes@ngc.com]
Sent: Tuesday, January 10, 2006 3:02 PM
To: Log4CXX User
Subject: RE: Mpr.dll Unresolved Import
I am able to debug log4cxx up until a certain point:
LoggerRepositoryPtr& LogManager::getLoggerRepository()
{
...
return repositorySelector->getLoggerRepository(); <--- GETS TO HERE
}
I'm unable to step into this code however. I get the usual "There is no
source code available for the current location." pop-up dialog.
Does anyone know where I get set a breakpoint for this line?
I set a breakpoint in all locations where "getLoggerRepository()" is
defined, but it doesn't work.
Any help appreciated.
Chris
________________________________
From: Combes, Chris M. [mailto:chris.combes@ngc.com]
Sent: Tuesday, January 10, 2006 1:08 PM
To: Log4CXX User
Subject: RE: Mpr.dll Unresolved Import
I can debug by stepping into the getLogger call and I get to a line in
xstring:
const_iterator operator--(int)
{ // postdecrement
const_iterator _Tmp = *this; <-- CRASHES HERE
--*this;
return (_Tmp);
}
Chris
________________________________
From: Combes, Chris M. [mailto:chris.combes@ngc.com]
Sent: Tuesday, January 10, 2006 12:41 PM
To: Log4CXX User
Subject: RE: Mpr.dll Unresolved Import
Thanks for responding Josh.
When I run my app (I created a separate test app now which simply logs
something), and hit "getLogger"
I get an access violation window.
log4cxx::LoggerPtr m_logger;
m_logger = log4cxx::Logger::getLogger(_T("MyApp"));
Any ideas?
Thanks,
Chris
________________________________
From: Josh Clark [mailto:idispatch@gmail.com]
Sent: Tuesday, January 10, 2006 11:39 AM
To: Log4CXX User
Subject: Re: Mpr.dll Unresolved Import
MPR.dll is delay loaded. You should see an hourglass next to the red
icon for MPR.dll. You shouldn't need it for log4cxx to run.
On 1/10/06, Combes, Chris M. <ch...@ngc.com> wrote:
After building log4cxx-0.9.8, if I run depends.exe on the
resultant
log4cxx.dll file, I get the following error:
Warning: At least one module has an unresolved import due to a
missing
export function in a delay-load dependent module.
MPR.DLL is highlighted in red.
If I link to log4cxx.dll my app will not work.
I downloaded 0.9.8 from http://littletux.homelinux.org/log4cxx/
Any help appreciated.
Thanks,
Chris