I
Ihor Bobak
We have such a piece of code:
using (StringFormat tempFormat = GridProperties.StringFormat)
{
StringFormat tempFormat = GridProperties.StringFormat;
StringFormat stringFormat = new StringFormat(tempFormat);
stringFormat.Alignment =
(StringAlignment)formatRule.Layout.AlignHorizontal;
stringFormat.LineAlignment =
(StringAlignment)formatRule.Layout.AlignVertical;
stringFormat.FormatFlags = tempFormat.FormatFlags;
GridProperties.StringFormat = stringFormat;
}
On x86 this code works fine and never crashes. On x64 (both on Vista Busines
and XP 64-bit) this code from time to time crashes with
"AccessViolationException occurs while disposing instance of class
StringFormat."
Exception occurs rarely, reasons are not clear.
We tried to find the solution using google search, but seems as noone else
got such problems before.
Would you be so kind as to tell us what can we do in order to dispose
StringFormat instance?
--
Best regards,
Ihor.
P.S. We are a valid MS Certified Partner. I am not sure if my posting alias
is fine, but I am expecting to get an answer. Thanks.
using (StringFormat tempFormat = GridProperties.StringFormat)
{
StringFormat tempFormat = GridProperties.StringFormat;
StringFormat stringFormat = new StringFormat(tempFormat);
stringFormat.Alignment =
(StringAlignment)formatRule.Layout.AlignHorizontal;
stringFormat.LineAlignment =
(StringAlignment)formatRule.Layout.AlignVertical;
stringFormat.FormatFlags = tempFormat.FormatFlags;
GridProperties.StringFormat = stringFormat;
}
On x86 this code works fine and never crashes. On x64 (both on Vista Busines
and XP 64-bit) this code from time to time crashes with
"AccessViolationException occurs while disposing instance of class
StringFormat."
Exception occurs rarely, reasons are not clear.
We tried to find the solution using google search, but seems as noone else
got such problems before.
Would you be so kind as to tell us what can we do in order to dispose
StringFormat instance?
--
Best regards,
Ihor.
P.S. We are a valid MS Certified Partner. I am not sure if my posting alias
is fine, but I am expecting to get an answer. Thanks.