Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Acess violation creating TIdSSLIOHandlerSocketOpenSSL at runtime


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Apr 2, 2016 3:38 AM Last Post By: acemary mary
Allen Knapple

Posts: 9
Registered: 2/11/14
Acess violation creating TIdSSLIOHandlerSocketOpenSSL at runtime  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 2, 2016 11:45 PM
I am getting an access violation error with XE2 Update 4 HotFix 1 and Indy 10.5.8 when I try to instantiate TIdSSLIOHandlerSocketOpenSSL at runtime like:
procedure TfMain.Button1Click(Sender: TObject);
var
IdSSLIOHandlerSocketOpenSSL: TIdSSLIOHandlerSocketOpenSSL;
begin
IdSSLIOHandlerSocketOpenSSL := IdSSLIOHandlerSocketOpenSSL.Create;

I have tried the latest OpenSLL dll's from fulgan. I've tried the dll's included with Delphi XE's subversion distribution. I've tried the dll's openssl-1.0.1c-i386-win32.zip (which to my understanding were released around the same time as Delphi XE2 ) and I still get the same error.

I've been thinking about installing FastMM so maybe I could get some more insight but I am not an expert with that tool. I'm hoping someone may be able to shed some light and point me in the right direction. Thx

Note: When I drop the component on a form everything works fine.

Best Regards,
Allen
Allen Knapple

Posts: 9
Registered: 2/11/14
Re: Acess violation creating TIdSSLIOHandlerSocketOpenSSL at runtime  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2016 12:54 PM   in response to: Allen Knapple in response to: Allen Knapple
Allen Knapple wrote:
I am getting an access violation error with XE2 Update 4 HotFix 1 and Indy 10.5.8 when I try to instantiate TIdSSLIOHandlerSocketOpenSSL at runtime like:
procedure TfMain.Button1Click(Sender: TObject);
var
IdSSLIOHandlerSocketOpenSSL: TIdSSLIOHandlerSocketOpenSSL;
begin
IdSSLIOHandlerSocketOpenSSL := IdSSLIOHandlerSocketOpenSSL.Create;

I have tried the latest OpenSLL dll's from fulgan. I've tried the dll's included with Delphi XE's subversion distribution. I've tried the dll's openssl-1.0.1c-i386-win32.zip (which to my understanding were released around the same time as Delphi XE2 ) and I still get the same error.

I've been thinking about installing FastMM so maybe I could get some more insight but I am not an expert with that tool. I'm hoping someone may be able to shed some light and point me in the right direction. Thx

Note: When I drop the component on a form everything works fine.

Best Regards,
Allen

I have know idea what the problem was. I removed every instance of libeay32.dll, ssleay32.dll, and ssleay32 on my machine. I uninstalled DelphiXE2 and cleaned up the registry with CCleaner. I reinstalled XE2 and fixed the problem.

Best Regards,
Allen
acemary mary

Posts: 12
Registered: 2/23/16
Re: Acess violation creating TIdSSLIOHandlerSocketOpenSSL at runtime  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2016 3:38 AM   in response to: Allen Knapple in response to: Allen Knapple
I've been making limited use of Indy 9 for over 10 years. ... Do you have the same problem if you create the TIdSSLIOHandlerSocketOpenSSL component dynamically in code at runtime, instead of at design-time? . http://www.trainingintambaram.in/php-training-in-chennai.html | http://www.traininginsholinganallur.in/web-designing-training-in-chennai.html | http://www.traininginsholinganallur.in/php-training-in-chennai.html
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02