Closed austinv900 closed 6 months ago
So it's actually returning 0 for the return value.
What does StringPool.Take()
do? Can you try passing in a StringBuilder with enough capacity like this:
StringBuilder str = new StringBuilder(1000);
That ended up being the problem, StringPool.Take just grabbed a pooled StringBuilder which is just instantiated with the default constructor. Settings Capacity to like 4096 solved the issue.
Perfect, thanks.
Code example
System information Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm