Author Topic: App freezing when showing windows forms.  (Read 993 times)

GraemeTownsend

  • Newbie
  • *
  • Posts: 29
    • View Profile
App freezing when showing windows forms.
« on: July 31, 2017, 05:37:44 AM »
Hi All,

I have an interesting issue with the app freezing for a while before updating all content and working fine.

Windows form app with minimal PLC interaction.
Various windows forms a are shown at different times with the true HMI data.
These forms a created at runtime, but not shown.

One such form has a Tab Control on it with two tabs. Each tab has an overview with several basic labels (20+).
When I open/show this form, I pre-select which tab to view first.

When I open form to Tab A, all it's labels work 100% fine, quick acting, no issue. As soon as I click on Tab B, the tab is shown, but the app freezes. You cannot even move it around by the top title bar. After a wait of between 10 and 20 seconds, it comes to life and then works fine. You can alternate between tabs no issue, all is OK. You can also hide the tab, then re show with no issue.

It behaves completely the same in reverse if I open Tab B first.

Any idea's?

Regards,
Graeme

seth350

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: App freezing when showing windows forms.
« Reply #1 on: August 02, 2017, 11:34:34 PM »
When you created these new forms, did you copy the first two methods from the top of the original main form to all other new ones? And are you using the formchange button provided with AdvancedHMI to open your additional forms?