Book a Demo

Author Topic: COM exception when calling Package.Update()  (Read 3096 times)

JoB

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
COM exception when calling Package.Update()
« on: October 06, 2009, 07:23:07 pm »
After upgrading to 849 my AddIn fails. I'm getting an exception when calling Package.Update() on my newly created package from the EA_MenuClick event.

Code: [Select]
EA.Package currentModel = (EA.Package)repository.GetTreeSelectedPackage();
 EA.Package newPackage = (EA.Package)parent.Packages.AddNew("Test", "Package");
newPackage.ParentID = parent.PackageID;
newPackage.Update();

This did work without any problems in 848. How am I supposed to do if I cannot call Package.Update()?