title: How to use IdFTP inside a DLL Delphi
body: <p>When i inject the DLL, the ShowMessage work fine, but when i use IdFtp the remote Process crash.</p>
  
  <pre><code>library FTP_DLL;
  
  uses
  SysUtils,Classes,IdFTP,Dialogs;
  
  {$R *.res}
  
  var
  IdFTP1: TIdFtp = nil;
  
  
  begin
    IdFTP1.Host := 'My ftp server';
    IdFTP1.UserName := 'user';
    IdFTP1.Password := 'password';
    IdFTP1.Connect;
    IdFTP1.Put('C:\test.txt','test.txt',False);
    ShowMessage('ok') ;
  end.
  </code></pre>
  
  <p>Thank you.</p>