Re: Crash using authentication sample - WeOnlyDo Discussion board

Re: Crash using authentication sample (General questions)

by mbeaton, Thursday, February 01, 2007, 12:59 (6292 days ago) @ woddrazen

I'm using 2.2.5.48

Run the VB6 code in debug and put a breakpoint on the select statement.
Step through and VB6 crashes.

Without the breakpoint it works OK.

I've attached the exact code i'm using.

Private Sub wodSmtpServer1_Authenticate(ByVal User As WODSMTPSERVERCOMLib.ISmtpUser, ByVal Username As String, ByVal Password As String, ByVal AuthMethod As WODSMTPSERVERCOMLib.SmtpAuthentications, Action As WODSMTPSERVERCOMLib.SmtpActions)
Select Case AuthMethod
Case AuthLogin
If Username = SMTPRelay And Password = SMTPRelay Then Action = Allow
Case AuthPlain
If Username = SMTPRelay And Password = SMTPRelay Then Action = Allow

Case AuthCramMD5
If Username = SMTPRelay And User.CalcCramMD5( SMTPRelay ) = Password Then Action = Allow
End Select
End Sub


Complete thread: