AnsweredAssumed Answered

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

Question asked by 15e6ad19-6d34-8b46-0100-014f0327e866 on Jun 14, 2016
Latest reply on May 6, 2019 by jayesh

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.

Outcomes