Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - thunting

Pages: [1]
1
Hello,
I keep getting an exception when I close any form in my application. Here are the details:

System.StackOverflowException
  HResult=0x800703E9
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>

The call stack trace shows a loop of 521 times while running the stock code listed below. The exception is thrown at My.Application.OpenForms(index).Close().

Thanks for any help

Code: [Select]
    '***************************************************************
    '* .NET does not close hidden forms, so do it here
    '* to make sure forms are disposed and drivers close
    '***************************************************************
    Private Sub MainForm_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing

        Dim index As Integer
        While index < My.Application.OpenForms.Count
            If My.Application.OpenForms(index) IsNot Me Then
                My.Application.OpenForms(index).Close()
            End If
            index += 1
        End While

    End Sub

2
Support Questions / Micro800 series array tag name
« on: July 13, 2020, 02:15:56 PM »
Hello,
I'm testing AHMI to use on our plant floor. I'm not experienced with VB. The PLC is a Micro850. I'm using the EthernetIPforMicro800Com driver.

I'm trying a basic tag read and write HMI with a button and a label using the Properties / PLC Properties dialogue. I can read / write to the 1 dimensional array SensorGPM[1] without a problem. I can read / write to the 2 dimensional array Recipe[1,1].

Trying to read / write to the 2 dimensional array Recipe[RecipeSelect,1] results in invalid tag name. Both tags a global. I must have the formatting wrong, can someone please help me out?

Thanks

Pages: [1]