G
Guest
I have no idea how this bug got past Microsoft's Testing! It's so straightforward
The following code snippet results in a System.OverflowExeption whenever it is executed
Regardless of where, why, or how
' Bug in StringFormat.SetMeasurableCharacterRanges
' OverFlow error occurs if the size of the CharacterRange array sent i
' greater than or equal to 33!!
Dim intTotalCharacters As Integer = 3
Dim characterRanges() As CharacterRang
Dim intIndex As Intege
Dim stringFormat As New StringForma
ReDim characterRanges(intTotalCharacters - 1
For intIndex = 0 To intTotalCharacters -
characterRanges(intIndex) = New CharacterRange(0, 1
Nex
stringFormat.SetMeasurableCharacterRanges(characterRanges
It doesn't matter that the ranges overlap. I've tried all possibilities an
they all result in the same Exception
How can something as simple as this not get discovered and fixed! Does anyone reall
use .NEt for serious development? There is pretty much no way anyone could print to a document and need to adjust for line wrapping without using this call
The following code snippet results in a System.OverflowExeption whenever it is executed
Regardless of where, why, or how
' Bug in StringFormat.SetMeasurableCharacterRanges
' OverFlow error occurs if the size of the CharacterRange array sent i
' greater than or equal to 33!!
Dim intTotalCharacters As Integer = 3
Dim characterRanges() As CharacterRang
Dim intIndex As Intege
Dim stringFormat As New StringForma
ReDim characterRanges(intTotalCharacters - 1
For intIndex = 0 To intTotalCharacters -
characterRanges(intIndex) = New CharacterRange(0, 1
Nex
stringFormat.SetMeasurableCharacterRanges(characterRanges
It doesn't matter that the ranges overlap. I've tried all possibilities an
they all result in the same Exception
How can something as simple as this not get discovered and fixed! Does anyone reall
use .NEt for serious development? There is pretty much no way anyone could print to a document and need to adjust for line wrapping without using this call