Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

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

$
0
0

Hi Bharadwaj

 

Symbols on the root schematic don't have a '\' in the name so it will fail on the split.


So either do a check (if instr(objComp.GetName(0),"\") <> 0 then) before the split or you can add the root schematic so it always is an array

DesignName = vdapp.GetActiveDesign()

RootName = Vdapp.GetProjectData().getiCDBDesignRootBlock(DesignName)

 

for ...

     CompfullparthWithRoot = RootName & "\" & objComp.GetName(0)

     tempsplittkk = Split(CompfullparthWithRoot, "\")


Viewing all articles
Browse latest Browse all 4541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>