DataView dvSortTotalUpdates = new DataView(); dvSortTotalUpdates = dtAllUpdates.DefaultView; dvSortTotalUpdates.Sort = "UploadDate"; DataTable dtGetBySize = dtAllUpdates.Clone(); for( int i = 0; i < iNumOfRecords; i++ ) { dtGetBySize.ImportRow(dvSor... } return (dtGetBySize);...
This is a very subtle yet annoying bug. And it's hard to find. Fortunately, I found help on the BCL Team Blog. Just in case (I've had posts that I linked to disappear in the past) I'll copy here what they say: We’ve seen cases where our customers have run into issues when using a MemoryStream with GZip compression. The problem can be frustrating to debug and I thought I’ll blog about it in the hope that others would avoid a similar issue. The code for this looks like this; Byte[] compressedBuffer;...