Article View: borland.public.cppbuilder.internet.socket
Article #2270IdHashMessageDigest5 Exception
From: Skaarak
Date: Thu, 13 Jul 2006 18:45
Date: Thu, 13 Jul 2006 18:45
24 lines
1433 bytes
1433 bytes
BCB6, Indy9 (9.0.50)
I'm trying to get the hash of a file, I'm using this code:
void __fastcall TMainForm::Button2Click(TObject *Sender)
{
unsigned int val;
TIdHashMessageDigest5 *MD5 = new TIdHashMessageDigest5 ();
val = MD5->HashValue("pvr2_0001.txt");
debugbox2->Text = val;
delete MD5;
}
Whenever the HashValue function is run it raises an Exception that goes
into the IdHashMessageDigest.hpp file:
public:
inline unsigned __fastcall HashValue(const AnsiString ASrc){ return
TIdHash128::HashValue(ASrc); }
Is there some other trick to this method?
Thanks
-Cory
Technical Details
Message-ID:
<44b69496$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,266f2c6a9c0ef055,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Skaarak" <skaarak@NOakamailSPAM.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: IdHashMessageDigest5 Exception Date: Thu, 13 Jul 2006 12:45:03 -0600 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 63.231.79.30 Message-ID: <44b69496$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1152816278 63.231.79.30 (13 Jul 2006 11:44:38 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail