Writeable code sections got you down? Fear no more!

转载 2011年01月11日 10:29:00

Virtual Memory changes included in Windows Mobile 6.1 can relocate read-only code sections out of Slot 0 and into a higher address range. This change was taken to relieve pressure from our coveted, read-write Slot 0. This change will be transparent to most developers since code sections are by default, read-only and do not assume code sections will be adjacent.


However, if you are intentionally including the “W” (write) attribute on a code section and your DLL is greater than 64kb, then you may be affected. Luckily, dumpbin.exe already knows to display a warning:


C:/WM612/release>dumpbin myDll.dll


60000020 flags


         Execute Read


DUMPBIN : warning LNK4078: multiple '.text' sections found with different attributes (E0000020)



E0000020 flags


         Execute Read Write


There is nothing programmatically wrong with the above and most modules will work without modification. However, if you are seeing some strange results in recent versions of Windows Mobile, you may want to try and restrict your module to Slot 0 by adding the following registry key:



    "MyDll.dll"=dword:1  << change DLL name to match


Please note that using the above key will force your entire module into Slot 0 and prevent other modules from loading in that slot. The above registry setting should be used with caution and only for modules with a writeable code section.


1、warning: creating .stack section with default size of 400 (hex) words. 这是因为没有在Project---Build O...
  • chenyi22
  • chenyi22
  • 2013年05月28日 12:21
  • 2356

SER2016 DIV1 问题 H: Paint(区间问题贪心+dp优化)

问题 H: Paint 时间限制: 1 Sec 内存限制:128 MB 提交: 38 解决: 9 [提交][状态][讨论版] 题目描述 You are painting a picket fe...
  • winter2121
  • winter2121
  • 2017年09月02日 18:18
  • 722

Yii2 swiftmailer Expected response code 220 but got code "502", with message "502 Error:

按照教程使用yii2的发邮件功能,在配置问题件配置如下 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', ...
  • hzmumu
  • hzmumu
  • 2017年10月24日 20:55
  • 210

Mac下安装mongoldb 报错 shutting down with code:100

具体错误栈: 2017-10-11T09:31:12.140+0800 I CONTROL  [initandlisten] MongoDB starting : pid=2382 port=270...
  • u013939918
  • u013939918
  • 2017年10月11日 10:37
  • 1057

MongoDB——shutting down with code:100

Ubuntu启动时错误 按照README文档,解压完mongodb压缩文件之后执行./mongod  输入启动命令,出现如下情况:  ./mongod  2017-05-03T02:44:...
  • qq_15297487
  • qq_15297487
  • 2017年05月04日 11:10
  • 4245


借鉴的文章: React-Native系列Android——Touch事件原理及状态效果 小白使用了一段时间的react-native,它的UI设计方式真是酷炫,原来我是学android的,...
  • d780793370
  • d780793370
  • 2016年09月16日 14:25
  • 1911

MySQL Cluster导入数据表时报错:Got error 708 'No more attribute metadata records (increas

解决办法:修改 MGM节点配置,把 [ndbd]中的 “MaxNoOfAttributes=1000”改成 “MaxNoOfAttributes=5000000”: 原因:Max...
  • gsying1474
  • gsying1474
  • 2015年07月30日 09:51
  • 2315

Expected response code 220 but got code “”, with message “””

在使用swift_mailer时出现了以下错误: Expected response code 220 but got code “”, with message “”” 解决办法: 这个一般是...
  • hayixia606
  • hayixia606
  • 2017年04月06日 12:26
  • 1840


  • ice00mouse
  • ice00mouse
  • 2015年02月06日 13:01
  • 5013


「We will not go quietly into the night! We will not vanish without a fight!」   Good morning. Good mo...
  • Young_Light_Lu
  • Young_Light_Lu
  • 2017年11月17日 17:37
  • 280
您举报文章:Writeable code sections got you down? Fear no more!