to have a correct capacity. To clean the buffer before use in server code,
"Olivier Matrot" <olivier.matrot.rte@online.nospam> wrote in message
news:eW94pdM%23GHA.1196@TK2MSFTNGP02.phx.gbl...
> Hello Peter,
> I'm using .NET 2.0 and this KB article is for 1.0 and 1.1.
>
> But I guess there is still a problem in .NET 2.0 ?
> May be a good think to do, is to remove StringBuilder in the Interop
> documentation.
> Thanks for that.
>
>
> ""Peter Huang" [MSFT]" <v-phuang@online.microsoft.com> wrote in message
> news:g21o3QM%23GHA.1984@TK2MSFTNGXA01.phx.gbl...
>> Hi Olivier,
>>
>> I think you may take a look at the KB below which describe a similar
>> scenario with you.
>>
>> SYMPTOMS
>> When you call a managed method that takes System.Text.StringBuilder as a
>> parameter from an unmanaged client, you may receive an
>> ArgumentOutOfRangeException exception error message.
>>
>> FIX: Call to managed class method with StringBuilder as in or out
>> parameter
>> may fail
>>
http://support.microsoft.com/kb/317577 >>
>> You may have a try.
>> If you still have any concern, please feel free to let me know.
>>
>> Best regards,
>>
>> Peter Huang
>>
>> Microsoft Online Community Support
>> ==================================================
>> Get notification to my posts through email? Please refer to
>>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif >> ications.
>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
>> issues
>> where an initial response from the community or a Microsoft Support
>> Engineer within 1 business day is acceptable. Please note that each
>> follow
>> up response may take approximately 2 business days as the support
>> professional working with you may need further investigation to reach the
>> most efficient resolution. The offering is not appropriate for situations
>> that require urgent, real-time or phone-based interactions or complex
>> project analysis and dump analysis issues. Issues of this nature are best
>> handled working with a dedicated Microsoft Support Engineer by contacting
>> Microsoft Customer Support Services (CSS) at
>>
http://msdn.microsoft.com/subscriptions/support/default.aspx. >> ==================================================
>> (This posting is provided "AS IS", with no warranties, and confers no
>> rights.)
>>
>
>