G
Guest
I'm think I might have found a bug in the Compact Framework (I'm using v1.0 sp2). I've written a method that:
- creates a DOM object
- Imports and appends some nodes contained in a number of XML files
- writes the DOM object out to a new XML file
When I run this on a Pocket PC - or even on an emulator - the method eats up fair amount of memory, but does not release it at the end, even if I explitly collect all garbage. And it seems to cause knock-on effects - the MSDN PocketGuid code starts to throw an exception.
I've run the exact same code on a Windows PC, and the memory is released after the method exits. I used a profiler (couldn't find one for the CF) to check this - lots of strings and XmlText objects, all being released when they should be.
So, my questions are these:
- can anyone from Microsoft confirm this is a CF bug? No-one else seems to have reported it, so I'm a bit cautious about this
- has anyone else found this?
- if so, have they found a better workaround than I have? I just make the application quit, warning the user to restart it. Not very graceful...
thanks
ireo
- creates a DOM object
- Imports and appends some nodes contained in a number of XML files
- writes the DOM object out to a new XML file
When I run this on a Pocket PC - or even on an emulator - the method eats up fair amount of memory, but does not release it at the end, even if I explitly collect all garbage. And it seems to cause knock-on effects - the MSDN PocketGuid code starts to throw an exception.
I've run the exact same code on a Windows PC, and the memory is released after the method exits. I used a profiler (couldn't find one for the CF) to check this - lots of strings and XmlText objects, all being released when they should be.
So, my questions are these:
- can anyone from Microsoft confirm this is a CF bug? No-one else seems to have reported it, so I'm a bit cautious about this
- has anyone else found this?
- if so, have they found a better workaround than I have? I just make the application quit, warning the user to restart it. Not very graceful...
thanks
ireo