vb.net - Debugging memory leak in compact framework 2.0 -


i'm working windows mobile application, running compact framework 2 , vb.net code. having need sync application every determined-period of time, use system.threading.timer set predefined timer each sync process.

the issue one, memory building fast, reaching 24 mb rapidly , app crush due outofmemoryexception.

i understood compact framework's gc not @ best, , has 2mb of gc heap, use 4 mb each sync , gc cleans 2mb, it's capabilities.

i tried use performance monitor tool of build in compact framework 2.0 provided me object "still alive" , not cleaned or disposed no real notion of what's going on in each part of app.

is there efficient way of monitoring memory leaks in compact framework 2.0? 1 guide me through method causing issue or part of code problematic?

or in other way, helpful ways manage memory in more, let's say, efficient way have 32mb of free ram space narrow ail here.

i'm sceptical issue relates actual memory leak.

attach device , start debugging session , monitor stack trace & number of threads in thread dropdown in visual studio. suspect spinning many threads without disposing old ones or have circular call function or subroutine growing stack trace large - tend find on small devices run out of memory before stack overflow.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -