Microsoft Visual C# 2008 Reducing number of loaded dlls

后端 未结 7 1207
萌比男神i
萌比男神i 2020-12-30 03:39

How can I reduce the number of loaded dlls When debugging in Visual C# 2008 Express Edition?

When running a visual C# project in the debugger I get an OutOfMemoryE

7条回答
  •  一生所求
    2020-12-30 03:57

    I had a similar issue once and what I ended up doing was using a list instead of an array. When creating the lists I set the capacity to the required sizes and I defined both lists BEFORE I tried adding values to them. I'm not sure if you can use lists instead of arrays but it might be something to consider. In the end I had to run the executable on a 64 bit OS, because when I added the items to the list the overall memory usage went above 2GB, but at least I wa able to run and debug locally with a reduced set of data.

提交回复
热议问题