# VB Crashes

**URL:** <https://forum.kirupa.com/t/vb-crashes/58795>\
**Category:** flash\
**Created:** [July 26, 2004, 9:23am UTC](https://forum.kirupa.com/t/vb-crashes/58795 "2004-07-26T09:23:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranab](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pranab](https://forum.kirupa.com/u/pranab)\
**Post date:** [July 26, 2004, 9:23am UTC](https://forum.kirupa.com/t/vb-crashes/58795/1 "2004-07-26T09:23:16Z")

</div>

[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]

```auto
 
 
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
 
 
 

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2004, 4:29pm UTC](https://forum.kirupa.com/t/vb-crashes/58795/2 "2004-07-27T16:29:54Z")

</div>

Please help me.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 4, 2004, 8:19am UTC](https://forum.kirupa.com/t/vb-crashes/58795/3 "2004-08-04T08:19:00Z")

</div>

Please help me, I am still looking for solution.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 10, 2004, 1:50pm UTC](https://forum.kirupa.com/t/vb-crashes/58795/4 "2004-08-10T13:50:22Z")

</div>

> [@pranab](#):
>
> 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 ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 10, 2004, 1:57pm UTC](https://forum.kirupa.com/t/vb-crashes/58795/5 "2004-08-10T13:57:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 15, 2004, 10:18am UTC](https://forum.kirupa.com/t/vb-crashes/58795/6 "2004-08-15T10:18:54Z")

</div>

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](http://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:
