Author Topic: Failed to create component ...  (Read 1071 times)

robkwan

  • Newbie
  • *
  • Posts: 44
    • View Profile
Failed to create component ...
« on: June 23, 2015, 11:32:24 AM »
I am using AdvancedHMIBetaV398r in VS2010 Pro with SP1.
Add a new project under the Solution "AdvancedHMIv35" root. Drag & drop an AdvancedHMI control results in the failed to create component dialogbox and closes VS2010. This happens every time on a new project on an empty form. Some AdvancedHMI components work, but I need to keep d & d until one works, then I can go back to use the ones that didn't work. The ones that work or do not work are not consistent.

What did I miss?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5270
    • View Profile
    • AdvancedHMI
Re: Failed to create component ...
« Reply #1 on: June 23, 2015, 12:28:41 PM »
Did you add a driver to the form before adding the control?

robkwan

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Failed to create component ...
« Reply #2 on: June 23, 2015, 04:00:08 PM »
Add driver then control seems to fix the failed to create component error.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5270
    • View Profile
    • AdvancedHMI
Re: Failed to create component ...
« Reply #3 on: June 23, 2015, 10:05:46 PM »
I did fix this so it won't give the exception. If you do not add the driver first, you do have to remember to set the ComComponent on the controls after the driver is added.