>I'm getting an error that says "Unhandled exception in TEncrypt.exe: 0xC0000005: Access Violation"
I copied your code and tested it. The error I got was a memory violation probably caused by the pointer memory allocation. I changed the pointers to local references and it worked fine ... I have to agree with Neil on this one ... But that brings up the question, why are you using pointers ???
Regards,
Jason
Jason Tryon
Senior Systems Analyst / Technical Lead
eBusiness / iPage