6 Replies Latest reply on Jun 27, 2016 7:13 AM by Patrick.Cashman

    Unable to get rid of exception in VB .NET Code (Exception - Unable To Allocate Object Collection)

    15e6ad19-6d34-8b46-0100-014f0327e866

      Hi All,

       

      We are reading all the design components from Dx-Designer schematic using the following piece of code with an intention to use all these objects again later on in the code.

      But we are continuously getting the exception which says 'Unable to allocate object collection'. Following is a part of the code where we are facing this issue:

       

      collComps = VdApp.DesignComponents("", VdApp.GetProjectData.GetiCDBDesignRootBlock(iCDBDesigns), "-1", "STD", True)

      For jk = 1 To collComps.Count

                              objComp = collComps.Item(CInt(jk)) ERROR IS OCCURING HERE

                               tempsplittkk = Split(objComp.GetName(0), "\")

       

      Request you to check and suggest if there is any solution to this.

      Any quick solution would be appreciated.

       

      Thank you,

      Bharadwaj.