* * *

Author Topic: Indy Sample project - Registerclass error  (Read 482 times)

mm_coder

  • New member
  • *
  • Posts: 24
Indy Sample project - Registerclass error
« on: January 29, 2018, 12:51:25 am »
I'm playing with the Indy smtp sample project.
When trying to view the main form the following error is displayed.

Unable to find the component class.
TLSSLSessionComponent is displayed.
It is not registered via RegisterClass and no .lfm was found.

I've read related posts, but don't understand what I should do.
New to the IDE, so please be gentle.
Thanks

taazz

  • Hero Member
  • *****
  • Posts: 4783
Re: Indy Sample project - Registerclass error
« Reply #1 on: January 29, 2018, 02:49:09 am »
SSLSession is not an indy component, an indy component starts with TIdxxxxxxxxxx (which makes me think that this component is part of the Lnet library if memory serves me right) you can ignore it and see if that helps. If not please post a link to the sample you are referring to.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

mm_coder

  • New member
  • *
  • Posts: 24
Re: Indy Sample project - Registerclass error
« Reply #2 on: January 29, 2018, 05:20:30 pm »
I apologize.
The sample program is from lnet.
It is the lNet 6.5 zip file; the visual smtp sample.

In the main.lfm form which does not load due to this error, there is a reference shown
below.

 object SMTP: TLSMTPClientComponent
    OnConnect = SMTPConnect
    OnReceive = SMTPReceive
    OnDisconnect = SMTPDisconnect
    OnError = SMTPError
    OnSent = SMTPSent
    OnSuccess = SMTPSuccess
    OnFailure = SMTPFailure
    StatusSet = [ssCon, ssEhlo, ssAuthLogin, ssAuthPlain, ssData, ssQuit]
    PipeLine = False
    Timeout = 0
    Session = SSLSession
    left = 393
    top = 248
  end

So I guess my question is how do I add (or register) this component?

I'm guessing it's similar to registering an ocx in VB, but I need a hint or
a reasonably detailed instruction.
Thanks again.




mm_coder

  • New member
  • *
  • Posts: 24
Re: Indy Sample project - Registerclass error
« Reply #3 on: January 30, 2018, 07:51:44 pm »
I was able to find similar issues on this forum.
Solved using the online package manager.

Followed instructions from below link.
http://wiki.freepascal.org/Online_Package_Manager

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus