[font=Arial]Hi,[/font]
[font=Arial]In my application the Splash Screen contains a Flash Movie. It accepts UserID and Password for the application. I pass that information to a function in another form called frmLogin. Every thing works fine except when the pointer leaves the subroutine sfMain_FSCommand VB crashes. I am getting the below message:[/font]
[font=Arial]
[font=Arial]The instruction at “0x048aebf5” referenced memory at “0x04a37244”. The memory could not be “read”.[/font]
[/font]
Option Explicit
Private sUserId As String
Private sUserPass As String
Private Sub Form_Click()
Unload Me
End Sub
Private Sub Form_Load()
'lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision
'lblProductName.Caption = App.Title
Me.sfMain.Movie = App.Path & "\IBBA.swf"
Me.sfMain.SetVariable "AppVer", "Ver: " & App.Major & "." & App.Minor & "." & App.Revision
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set frmSplash = Nothing
End Sub
Private Sub sfMain_FSCommand(ByVal command As String, ByVal args As String)
Dim iRet As Integer
Select Case LCase$(command)
Case "user"
sUserId = UCase$(args)
Case "password"
sUserPass = args
iRet = frmLogin.iValidateUserLogin(sUserId, sUserPass)
If iRet = 1 Then
Unload frmLogin
Set frmLogin = Nothing
Unload Me
End If
Case "cancel"
End
End Select
End Sub