Author Topic: unselecting "make single instance application" cases application to not compile.  (Read 1240 times)

Lupo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hello,

I have built 2 HMIs, one for the remote unit (raspberry pi) and one for the main unit (windows).  They both work great.  I now need to make the windows PC to open more than one instance of the HMI.  A forum post said all i need to do is the action in the subjct line.  When I do that, the compile faults out and i get this message:

Severity   Code   Description   Project   File   Line   Suppression State
Error   BC30456   'MainForm' is not a member of 'MfgControl.AdvancedHMI'.   AdvancedHMI   C:\BeerDispenserServer\AdvancedHMI\AdvancedHMI\My Project\Application.Designer.vb   35   Active

In fact, if I use a working backup and unselect and select the box again before compiling, I still gets the same fault.

Any ideas?

I could also use a single instance application if i could figure outhow to change the IP address in the communication driver from the HMI but I haven't figured that out.

Thanks for any thoughts.
 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI

Lupo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Thanks, but it didn't help.  This is so weird.  I'm open to any other ideas.

Lupo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Any time I make any change at all to the Application properties of AdvancedHMI (using the form) the auto generated vb throws this fault. 

'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.42000
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On


Namespace My
   
    'NOTE: This file is auto-generated; do not modify it directly.  To make changes,
    ' or if you encounter build errors in this file, go to the Project Designer
    ' (go to Project Properties or double-click the My Project node in
    ' Solution Explorer), and make changes on the Application tab.
    '
    Partial Friend Class MyApplication
       
        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
        Public Sub New()
            MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
            Me.IsSingleInstance = true
            Me.EnableVisualStyles = false
            Me.SaveMySettingsOnExit = true
            Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
        End Sub
       
        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
        Protected Overrides Sub OnCreateMainForm()
           Me.MainForm = Global.MfgControl.AdvancedHMI.MainForm <<<<<<<<<<<<<<<< Fault is here
        End Sub
    End Class
End Namespace


It's got to be something simple....

Lupo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Was something simple.  Where is says MainForm it should of said the name of my actual mainform.  I don't know it got changed, but it works now.  It's a wonder how a vacation can give you some clarity.