Stringbuilder buffer overflowed by unmanaged code

oumahexi

Free Range Witch
Local time
Today, 06:33
Joined
Aug 10, 2006
Messages
1,996
Hi

Our front end system has recently been upgraded to run with Crystal 11. All our reports are written in Crystal 9. Our supplier had assured us that this would not be promlematic, however, since the upgrade, when my users run some of their reports they get the following error message:

Warning: A StringBuilder buffer has been overflowed by unmanaged code. The process may become unstable. Insufficient capacity allocated to the StringBuilder before marshaling it.

Has anyone had experience of this before? My gut feeling is that there is a conflict between the Crystal 9 code and the runtime version of Crystal 11.

Many thanks
 
It sounds like the application is using mixture of managed code (.NET) and unmanaged code (COM). There's some COM interop going on, but I don't think whoever wrote the code accounted for the case where the StringBuilder class in .NET would be asked to handle a large piece of string.

Do you have access to the source code or was it written by the supplier? If latter, then it should be their responsibility to fix it. In the meanwhile, see if you can work around by breaking the string up into small pieces?
 
Thanks Banana, you're a honey. It's the suppliers code so I'll go shout at them (erm I mean nudge them :) )
 
No problem. Hope they will do it speedy and not goof it even more. :)
 

Users who are viewing this thread

Back
Top Bottom