I am testing bulk data transfer over WCF service and my scenario is as follows.
WCF service contains method GetData which fetch data from DB(100000 records), fills datatable, converts this datatable to array of string and returns this array of string
This service is hosted in the windows app programmatically (No config file) AT the client side, proxy object is created using channelfactory In a button click event, simply call to GetData method and holds it into string array, then covert this array back to datatable and assign this datatable to grid.
I have written custom class to convert datatable to string array and vice versa which will be available on both sides.
Now when I click button to execute this operation, then 9 times it works perfectly fine but on the 10th click it gives System.OutOfMemoryException in custom class method which coverts array to datatable and each time error is on different line.
I am unable to find solution for it. I have tried setting all used objects to nothing wherever possible but the error still persists.
Can anyone help me on this.
PrabiI can be still better.
View Complete Post