VB Crashes

[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
 
 
 

Please help me.

Please help me, I am still looking for solution.

I received your e-mail, but I’m not sure I know what the solution to this would be. I have no experience using VB and Flash :frowning:

You may want to look for a VB forum to see if people there can help.

Thank you Kirupa and senocular for your response.

I think there is some problem in Flash.OCX. I searched the net related to FlashVB and downloaded the sample codes. Even I tried the code that is supplied in Kirupa.com.

VB is crashing if I unload the form from ShockwaveFlash1_FSCommand routine. I will have to use alternate method to my application work.:thumb: