Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
Hi to all,

I'm developing a software by using log4cpp which was running without problem so far but yesterday I started to get "log4cpp.ini file not found" errors even if the file is in the correct folder. It exists in the project folder but also I copied it to Debug folder too, just in case.

Please note that I set my working directory to ".\Debug"
And also,
I've checked my .vcproj file and it has:
<file relativepath=".\log4cpp.ini"></file>


I include ".\" in
Config properties->c/c++->General->Additional include directories

When I check the logs, I see the exceptions below:
First-chance exception at 0x757bb727 in rpmtrhmfctestclient.exe: Microsoft C++ exception: decaf::net::URISyntaxException at memory location 0x0032c4b8..
First-chance exception at 0x757bb727 in rpmtrhmfctestclient.exe: Microsoft C++ exception: decaf::lang::exceptions::NumberFormatException at memory location 0x0032b48c..
First-chance exception at 0x757bb727 in rpmtrhmfctestclient.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x0307e08c..
First-chance exception at 0x757bb727 in rpmtrhmfctestclient.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x0307ea44..



is there anything I can do or check to solve this problem?

Thanks in advance, regards
ilker
Posted
Updated 5-Feb-11 21:18pm
v4
Comments
Richard MacCutchan 26-Nov-10 8:59am    
Are you sure the problem is that the program cannot find the .ini file. The messages in your logs do not mention it.
Albert Holguin 5-Feb-11 19:59pm    
Agree with Richard here, nothing in those error messages indicates a missing file. Usually VS is pretty good about letting you know explicitly when a file isn't found.
[no name] 26-Nov-10 9:11am    
There are two seperate projects.
rpmtrhmfctestclient calls rpmtrhclient project. I'm getting this error in rpmtrhclient.
Andrew Phillips 28-Feb-11 9:24am    
I'm a bit confused as to whether you are getting file not found problem when you build or when you run the program. Ini files are normally used at run-time but you appear to have added it to your project for some reason. I am also not sure why you mention the include directories path.

Assuming the problem occurs at when running your program it is probably that rpmtrhclient cannot find it. If this is a DLL it may be being picked up from a different location than you expect. Windows now searches for DLLs in some standard locations (such as the Windows System32 directory) before looking in the current directory and .EXE directory. (This was chnaged to plug some security holes.)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900