Thanks for the reply, I can not reproduce the problem with a small
sample application. The same code works there but does not work in the
complex application (there might be differences in the project
settings that I've missed). When I use the same call to the FileSource
constructor from both projects, they differ in the way

while (size && m_stream->good())

evaluates. In the short test application m_stream->good() returns
false in the second iteration of the loop, letting the method
correctly return, in my application context this method always returns
true on the same file (while 0 bytes are read from the stream
afterwards, leading to my problem).

Also, I do not really suspect this to ba problem of CryptoPP rather
something in the overall compiler settings, or an include. I was just
hoping someone might have seen this behavior before and recognizes my
mistake.

Thanks for your help
Tom


For completeness, here's the call-stack:

tlm.exe!
CryptoPP::FileStore::TransferTo2(CryptoPP::BufferedTransformation &
target={...}, unsigned __int64 & transferBytes=0, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="", bool blocking=true)  Line 70        C++
tlm.exe!
CryptoPP::BufferedTransformation::TransferMessagesTo2(CryptoPP::BufferedTransformation
& target={...}, unsigned int & messageCount=0, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="", bool blocking=true)  Line 402 + 0x1d bytes  C++
tlm.exe!
CryptoPP::BufferedTransformation::TransferAllTo2(CryptoPP::BufferedTransformation
& target={...}, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="", bool blocking=true)  Line 448 + 0x18 bytes  C++
tlm.exe!CryptoPP::SourceTemplate<CryptoPP::FileStore>::PumpAll2(bool
blocking=true)  Line 718 + 0x31 bytes   C++
tlm.exe!CryptoPP::Source::PumpAll()  Line 689 + 0x1e bytes      C++
tlm.exe!CryptoPP::Source::SourceInitialize(bool pumpAll=true, const
CryptoPP::NameValuePairs & parameters={...})  Line 701  C++
tlm.exe!CryptoPP::FileSource::FileSource(const char *
filename=0x0136f0e0, bool pumpAll=true,
CryptoPP::BufferedTransformation * attachment=0x0136f058, bool
binary=true)  Line 60 + 0xc4 bytes      C++
tlm.exe!CCredit::InitalizeCrypting()  Line 530 + 0xb7 bytes     C++
tlm.exe!CCredit::CCredit()  Line 195    C++
tlm.exe!CTlmApp::InitInstance()  Line 242 + 0x38 bytes  C++
tlm.exe!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ *
hPrevInstance=0x00000000, char * lpCmdLine=0x00151f0d, int
nCmdShow=1)  Line 37 + 0xd bytes        C++
tlm.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ *
hPrevInstance=0x00000000, char * lpCmdLine=0x00151f0d, int
nCmdShow=1)  Line 33    C++
tlm.exe!__tmainCRTStartup()  Line 324 + 0x35 bytes      C
tlm.exe!WinMainCRTStartup()  Line 196   C
kernel32.dll!7c816fd7()
[Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to