Congratulations, you have overtaxed the .NET garbage collector!
The Weird and The Wonderful
1
Posts
1
Posters
0
Views
1
Watching
-
Trying to translate a winforms app into silverlight, which doesn't have blocking socket operations:
private void ReceiveTelnetDataRepeatedly()
{
while (connection != null && connection.isconnected)
{
connection.CheckForNewBytes();
ProcessData(connection.GetIncomingStrings());
}
}This was executing in a thread, and the "check for new bytes" was allocating an 8K array every time... within 30 seconds, I'd allocated 1.5GB of RAM and caused an OutOfMemoryException... :omg: