delphi - Access violation when loading ssl handler to Imap server in indy -
i'm trying assign tidserveriohandlersslopenssl
tidimap4server
if memory leak afterwards because tidimap4server
assigns own iohandler internally.
so there
access violation
when closing program after try :imap4server.iohandler := myssliohandler; // myssliohandler type tidserveriohandlersslopenssl
and there
access violation
if try :tidserveriohandlersslopenssl(imap4server.iohandler).ssloptions.certfile := mycertfile; // or other property of ssloptions
can suggest answer problem ?
every tcp server component in indy, including tidimap4server
, uses whichever tidserveriohandler...
object has been assigned server's iohandler
property before server activated. internal tidserveriohandlerstack
object created , assigned only if there no tidserveriohandler...
object assigned @ activation time.
so make sure assigning imap4server.iohandler := myssliohandler
before set imap4server.active := true
(unless assigning them @ design-time, safe active=true
not take effect until dfm property values have finished streaming).
Comments
Post a Comment