We are a running a .NET app on BitsyX with CE 4.20 Our app runs fine up until the point where we wake up after a sleep. (We're running off a battery and need to save power). After the wake up (not usually straight after - usually much later) our app slows to a snail's pace: 10-20 times slower. We are using keypad wakeup and digital I/O, but believe we are managing those correctly before and after wakeup. I can't debug it - the act of going to sleep breaks the connection (and anyway the BitsyX doesn't wake up if there's an ethernet cable attached). I'm really looking for suggestions of things to try; tools to use -"process monitors" all seem to need a network connection...
Thanks for the details, Richard. I see how it can be tricky thing to debug. Can you let us know which build of CE for the BitsyX you're using? (4.20.xx)
1. enable the performance statistics log file output. Run your app without the problem (don't sleep/wake) and save the log, then run it again and reproduce the problem and save that log. Run the app for the same amount of time with the same activity in both. The differences might provide some info on what's happening.
2. Create a simple monitor app that uses the Toolhelp APIs to view the memory and heap usage of your app over time. Use it like in #1 - testing with no failure and with and see if there's a pattern. A start can be found here, though it doesn't have the memory or heap stuff, it does show how to get the process snapshots.