Labels on Point Layer causing exception

Sep 11, 2011 at 4:14 PM

I have a map with two layers, one with a few points, one with a few lines connecting those points. I labeled the points with this VB code:

Map1.AddLabels(Map1.Layers(0), "[Site_Name]"New Font(fname, fsize), fcolor)

This works fine, unless I try to open the Label Setup on this layer which throws a OutofMemenory Exception with the note "List box contains too many lines"
Now, if I remove the code above, I can open the Label Setup just fine.

How can I fix this,

Also, how can I get to the label Setup in code?