Hello, my question is about a c# on .net 2.0 application that I'm building. I am creating an encyclopedia-like area within the application that holds information about plants. I've created a few classes for this area that represent different sets of plant information. Whenever I try to view the details of a plant I'm getting the exception System.OutOfMemoryException and I am having trouble figuring out why. I am using many arrays all at once. Is it too much for .net to handle? Can anyone point me toward a more efficient way of coding this? Here's the portion of offending code:
Thanks,Joe Dulany
{
paHeight.AttributeName =
paHeight.AttributeList = p.height.Split(
items.Add(paHeight);
}
paSpread.AttributeName =
paSpread.AttributeList = p.spread.Split(
items.Add(paSpread);
paGrowthRate.AttributeName =
paGrowthRate.AttributeList = p.growthRate.Split(
items.Add(paGrowthRate);
paBloomSeason.AttributeName =
paBloomSeason.AttributeList = p.bloomSeason.Split(
items.Add(paBloomSeason);
paBloomColor.AttributeName =
paBloomColor.AttributeList = p.bloomColor.Split(
items.Add(paBloomColor);
paHardiness.AttributeName =
paHardiness.AttributeList = p.hardiness.Split(
items.Add(paHardiness);
paSoilType.AttributeName =
paSoilType.AttributeList = p.soilType.Split(
items.Add(paSoilType);
paExposure.AttributeName =
paExposure.AttributeList = p.exposure.Split(
items.Add(paExposure);
paAttracts.AttributeName =
paAttracts.AttributeList = p.attracts.Split(
items.Add(paAttracts);
paResists.AttributeName =
paResists.AttributeList = p.resists.Split(
items.Add(paResists);
paAttributes.AttributeName =
paAttributes.AttributeList = p.attributes.Split(
items.Add(paAttributes);
pnl_Characteristics.Visible =
{ writer.Append(
writer.Append(
i = 0;
x++;