Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages
Started by Devon Harbaugh
Thu, 13 Oct 2005 18:40
EAccessViolation with TIdHashMessageDigest5
Author: Devon Harbaugh
Date: Thu, 13 Oct 2005 18:40
Date: Thu, 13 Oct 2005 18:40
25 lines
1987 bytes
1987 bytes
I'm trying to use TIdHashMessageDigest5, but whenever I call the
HashValue function, regardless of whether I send in a TStream* or an
AnsiString, an EAccessViolation exception is thrown. I've not been able
to figure out what's wrong with my code. I've included a sample of what
I've tried so far and would appreciated any suggestions you may have.
Devon Harbaugh
...
#include <IdHashMessageDigest.hpp>
...
void __fastcall TForm1::Button1Click(TObject* Sender) {
TFileStream* File = NULL;
TIdHashMessageDigest5* Hash = NULL;
try {
File = new TFileStream("c:\\boot.ini", fmOpenRead);
Hash = new TIdHashMessageDigest5;
Edit1->Text = Hash->HashValue(File);
} catch(Exception& Ex) {
Edit1->Text = Ex.Message;
}
if(Hash) delete Hash;
if(File) delete File;
}
...
Re: EAccessViolation with TIdHashMessageDigest5
Author: Remy Lebeau (TeamB)
Date: Thu, 13 Oct 2005 22:25
Date: Thu, 13 Oct 2005 22:25
10 lines
1135 bytes
1135 bytes
"Devon Harbaugh" <dharbaugh@laptopsetc.com> wrote in message news:434ea979$1@newsgroups.borland.com... > I'm trying to use TIdHashMessageDigest5 Which version of Indy are you using? Gambit
Re: EAccessViolation with TIdHashMessageDigest5
Author: Devon Harbaugh
Date: Fri, 14 Oct 2005 16:18
Date: Fri, 14 Oct 2005 16:18
7 lines
1380 bytes
1380 bytes
Thanks for the reply. > Which version of Indy are you using? I'm using Indy version 9.0.17 with Builder 6 on Windows XP. Devon
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads