I have a class in my project which is an object for Microsoft report viewer dataset.
The object is loaded by the report and displayed properly if manually loaded by rows.add() method.
When I use a streamreader object to read a text file and populate the report in the class contructor , the data gets loaded, but the IDE becomes unstable. After stopping the debugging if we try to view the datasourse tab IDE will show a box saying that the data sourse text file was not found in Visual studio directory. if we comment the streamReader part again it will be ok but data cannot be populated then.
Make sure that, you close the stream after you load all data from it. Also don't forget, that working directory of IDE is different from working directory from debugged app, so file which you are able access from application may not be accessible from IDE. Maybe IDE is trying to instantinate the object to inspect, if so, it calls the constructor which try to load the file for which it looks in working directory of IDE, where it may not existst.