<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-38895959.post6524998450725726989..comments</id><updated>2010-01-27T15:09:15.406Z</updated><title type='text'>Comments on Simon Hart: Memory management on Windows Mobile &lt;= 6.1</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.simonrhart.com/feeds/6524998450725726989/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html'/><author><name>Simon Hart</name><uri>http://www.blogger.com/profile/08526568682625258690</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-38895959.post-980821157987909252</id><published>2010-01-27T15:09:15.406Z</published><updated>2010-01-27T15:09:15.406Z</updated><title type='text'>@Jorn:

Thanks for this code snipet. I know about ...</title><content type='html'>@Jorn:&lt;br /&gt;&lt;br /&gt;Thanks for this code snipet. I know about this message, but the article was about getting the developer to understand what WM_HIBERNATE actually means and how to handle it. So a good way to get an understanding to the reader is to show a real example.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Simon.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/980821157987909252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/980821157987909252'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html?showComment=1264604955406#c980821157987909252' title=''/><author><name>Simon Hart</name><uri>http://www.blogger.com/profile/08526568682625258690</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15682429139984623361'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html' ref='tag:blogger.com,1999:blog-38895959.post-6524998450725726989' source='http://www.blogger.com/feeds/38895959/posts/default/6524998450725726989' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-38895959.post-5308375446631262836</id><published>2010-01-27T15:07:35.502Z</published><updated>2010-01-27T15:07:35.502Z</updated><title type='text'>@Jason:

Sorry for the major late reply. I don't t...</title><content type='html'>@Jason:&lt;br /&gt;&lt;br /&gt;Sorry for the major late reply. I don&amp;#39;t think the WM_HIBERNATE message threshold can be changed. It sound slike you have hit the threshold of 32-meg per process. Use the Remote Performance Monitor tool to check what your application is doing.&lt;br /&gt;&lt;br /&gt;Simon.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/5308375446631262836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/5308375446631262836'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html?showComment=1264604855502#c5308375446631262836' title=''/><author><name>Simon Hart</name><uri>http://www.blogger.com/profile/08526568682625258690</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15682429139984623361'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html' ref='tag:blogger.com,1999:blog-38895959.post-6524998450725726989' source='http://www.blogger.com/feeds/38895959/posts/default/6524998450725726989' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-38895959.post-4226265040878991336</id><published>2010-01-27T14:34:22.449Z</published><updated>2010-01-27T14:34:22.449Z</updated><title type='text'>To anyone interested, to force a WM_HINERNATE mess...</title><content type='html'>To anyone interested, to force a WM_HINERNATE message being sent from C# just use this:&lt;br /&gt;&lt;br /&gt;[DllImport(&amp;quot;coredll.dll&amp;quot;)]&lt;br /&gt;private static extern int SendMessage(IntPtr hWnd, uint msg, int wParam, int lParam);&lt;br /&gt;&lt;br /&gt;public const uint HWND_BROADCAST = 0xffff;&lt;br /&gt;public const uint WM_HIBERNATE = 0x03FF&lt;br /&gt;&lt;br /&gt;SendMessage((IntPtr)HWND_BROADCAST, WM_HIBERNATE, 0, 0);&lt;br /&gt;&lt;br /&gt;That&amp;#39;s all. No need to allocate memory or anything else...&lt;br /&gt;A better formatted version is online here on my blog:&lt;br /&gt;http://blog.koerner.in/index.php?/archives/6-Sending-the-WM_HIBERNATE-message....html</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/4226265040878991336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/4226265040878991336'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html?showComment=1264602862449#c4226265040878991336' title=''/><author><name>Jörn</name><uri>http://www.blogger.com/profile/14781958910072633824</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html' ref='tag:blogger.com,1999:blog-38895959.post-6524998450725726989' source='http://www.blogger.com/feeds/38895959/posts/default/6524998450725726989' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-38895959.post-8343012537349464407</id><published>2009-09-25T23:36:16.397Z</published><updated>2009-09-25T23:36:16.397Z</updated><title type='text'>Hi Simon

I have a WM6.1 application .netcf vb whi...</title><content type='html'>Hi Simon&lt;br /&gt;&lt;br /&gt;I have a WM6.1 application .netcf vb which needs to incorporate memory management as you have described.  Is your example code available in vb?  I am based in London and wonder if you could review my entire code (for a fee ofcourse) to improve its performance.  The app freezes up after a while presumably due to low memory.&lt;br /&gt;&lt;br /&gt;ayo owoade&lt;br /&gt;owoade@btinternet.com</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/8343012537349464407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/8343012537349464407'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html?showComment=1253921776397#c8343012537349464407' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html' ref='tag:blogger.com,1999:blog-38895959.post-6524998450725726989' source='http://www.blogger.com/feeds/38895959/posts/default/6524998450725726989' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-38895959.post-1349748621236951284</id><published>2009-05-04T03:00:00.000Z</published><updated>2009-05-04T03:00:00.000Z</updated><title type='text'>Hi there,

I was wondering if you are able to sugg...</title><content type='html'>Hi there,&lt;br /&gt;&lt;br /&gt;I was wondering if you are able to suggest how the thresholds can be changed.  My 64MB device seems to call WM_HIBERNATE at 10MB free which can be quite painful when listening to music + browsing for instance - WMP will always get killed.  Any suggestions would be great.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Jason</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/1349748621236951284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/1349748621236951284'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html?showComment=1241406000000#c1349748621236951284' title=''/><author><name>Jason</name><uri>http://www.blogger.com/profile/01515530083381993236</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html' ref='tag:blogger.com,1999:blog-38895959.post-6524998450725726989' source='http://www.blogger.com/feeds/38895959/posts/default/6524998450725726989' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-38895959.post-129722897178496046</id><published>2008-10-29T07:47:00.000Z</published><updated>2008-10-29T07:47:00.000Z</updated><title type='text'>Thank you for a very good post.</title><content type='html'>Thank you for a very good post.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/129722897178496046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/129722897178496046'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html?showComment=1225266420000#c129722897178496046' title=''/><author><name>JudoMaster</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html' ref='tag:blogger.com,1999:blog-38895959.post-6524998450725726989' source='http://www.blogger.com/feeds/38895959/posts/default/6524998450725726989' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-38895959.post-5256076273235466836</id><published>2008-09-15T12:15:00.000Z</published><updated>2008-09-15T12:15:00.000Z</updated><title type='text'>What device are you running on? there is as max li...</title><content type='html'>What device are you running on? there is as max limit on pre WM 6.1 of a 32 meg per process.&lt;BR/&gt;&lt;BR/&gt;--&lt;BR/&gt;Simon.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/5256076273235466836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/5256076273235466836'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html?showComment=1221480900000#c5256076273235466836' title=''/><author><name>Simon Hart</name><uri>http://www.blogger.com/profile/08526568682625258690</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15682429139984623361'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html' ref='tag:blogger.com,1999:blog-38895959.post-6524998450725726989' source='http://www.blogger.com/feeds/38895959/posts/default/6524998450725726989' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-38895959.post-5056249733686416546</id><published>2008-09-07T12:26:00.000Z</published><updated>2008-09-07T12:26:00.000Z</updated><title type='text'>Hi,I do have an outofmemoryexception in my app. Si...</title><content type='html'>Hi,&lt;BR/&gt;I do have an outofmemoryexception in my app. Since the device has 256MB I have no idea why this happens. During execution there are only about 20MB used. So I wrote a little app pretty much like yours. Eating 1MB each loop I get an exception when i==25- but there ist still over 100MB available. Any idea whats going on here?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/5056249733686416546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38895959/6524998450725726989/comments/default/5056249733686416546'/><link rel='alternate' type='text/html' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html?showComment=1220790360000#c5056249733686416546' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.simonrhart.com/2008/05/memory-management-on-windows-mobile-61.html' ref='tag:blogger.com,1999:blog-38895959.post-6524998450725726989' source='http://www.blogger.com/feeds/38895959/posts/default/6524998450725726989' type='text/html'/></entry></feed>