EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Access violation error

#1033
Posted: 08/18/2006 07:02:49
by Laurent Guy (Priority Standard support level)
Joined: 08/03/2006
Posts: 10

An application I wrote which works well most of the time periodically fails with a "access violation at address..." error. To the best I can figure, the error occurs in line 1694 of SBPGP (D7 version), in procedure TElPGPReader.ProcessingUnitFinish(Sender: TObject), the line:

TElPGPProcessingUnit(FProcessingUnits[Index+1]).Write(@Buf[0],Read);

What's odd about this error is:

1. it happens only some days when I run the app
2. the decrypting code I use is a straight copy of the demo code

Other info:

a. I use pgpReader.DecryptAndVerify(inF,0);
b. The app uses an Indy FTP component
c. The demo decryption app provided by Eldos has no problem decrypting the encrypted file on which my app crashes.

Thanks for any insights.

LG
#1035
Posted: 08/18/2006 10:01:52
by Eugene Mayevski (Team)

Well, if the decrypting code crashes, then it's not the exact copy of the demo code, if the demo code doesn't cause problems. I am moving this ticket to HelpDesk -- maybe the developers have some idea.


Sincerely yours
Eugene Mayevski
#1038
Posted: 08/18/2006 10:17:40
by Laurent Guy (Priority Standard support level)
Joined: 08/03/2006
Posts: 10

One time I ran the same app I got "Unexpected end of data" with the DecryptAndVerify() method. Any ideas?
#1039
Posted: 08/18/2006 10:21:10
by Laurent Guy (Priority Standard support level)
Joined: 08/03/2006
Posts: 10

please disregard that last message
#1041
Posted: 08/18/2006 11:47:43
by Laurent Guy (Priority Standard support level)
Joined: 08/03/2006
Posts: 10

I have still not found the source of the error, but for what it's worth the app runs without errors some of the time. Other times it generates this access violation error. This inconsistency occurs with exactly similar inputs.
#1042
Posted: 08/18/2006 14:50:23
by Laurent Guy (Priority Standard support level)
Joined: 08/03/2006
Posts: 10

OK. The problem was that the VerifyingKeys property of the reader was not set. it runs sometimes with only the DecryptingKeys property set; but you need both for reliable operation.

If that is the case, I would suggest making both properties mandatory. Just an idea.
#1043
Posted: 08/18/2006 14:58:00
by Eugene Mayevski (Team)

Thank you for the finding. The developers will check it.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 4383 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!