System. AccessViolationException: Visual Basic 2005 and ShockwaveFlash

Joined
Feb 5, 2008
Messages
1
Reaction score
0
Hi Everyone
I get a issue, that i can't solve because i was looking in the web and I did find anything about this, i hope you can help me, the error is happends in this line:
Private Sub FormRotativas_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'Tiempo entre los dos clicks izquierdos y los 2 derechos para entrar al menu principal de operador

TmrMenuPrincipal.Enabled = False : TmrMenuPrincipal.Stop() : TmrMenuPrincipal.Interval = 2000

TmrDeviceStatus.Enabled = False : TmrDeviceStatus.Stop() : TmrDeviceStatus.Interval = 4000 'Check devices every 4 seconds

Log.Savelog("Loading Rotativas")

With FlashRotativas

.Stop()

.Movie = FlashRotativasFile

.Play()

End With

'FlashRotativas.Movie = FlashRotativasFile

BandArch = True

ReceiptPrinter = FormControles.AxKXReceiptPrinter

JournalPrinter = FormControles.AxKXJournalPrinter

BarCodeScanner = FormControles.AxKXBarcodeScanner

BillDispenser = FormControles.AxKXBillDispenser

CoinDispenser = FormControles.AxKXCoinDispenser

BillAcceptor = FormControles.AxKXBillAcceptor

CoinAcceptor = FormControles.AxKXCoinAcceptor

CheckDevices()

End Sub


When the application try to change the screen appears this error:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at ShocwaveFlashObjects.IShockwaveFlash.set_Movie(String pVal)
at AxShocwaveFlashObjects.AxShockwaveFlash.set_Movie(String value)
at Megacable.FormDespedida.FormDespedida_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.Show()
at Megacable.FormRecibo.TmrDeviceStatus_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Time.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message & m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, int32 msg, IntPtr wparam, IntPtr lparam)
I don't know what i do, i hope you may help me with this issue.
Regards
 
Back
Top