Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
技术板块灌水区
» CB2007一个郁闷的问题.
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: CB2007一个郁闷的问题.
zmguozi
普通灌水员
UID 41079
Digest Posts 0
Credits 97
Posts 37
点点分 97
Reading Access 10
Registered 2008-10-10
Status Offline
#1
Post at 2009-9-27 09:49
Profile
|
Blog
|
P.M.
CB2007一个郁闷的问题.
最近一个项目用CB2007在做,做到差不多收尾时发现一个函数导致的问题,很郁闷也是很奇怪的问题,和大家分享一下.
程序需要AWE操作,也就是程序需要一块比较大的物理内存做文件缓存.那肯定离不开这个API: VirtualAlloc .结果让我始料不及的是,这个API在CB2007编译后会出问题.具体的描述如下:
开始我的CPU是INTEL E7320 双核,使用这个API,不能划分超过535M的物理内存,536M就报错误8.换了一个CPU,INTEL E2180,好了,用这个API可以划分1G以下的物理内存.超过就不行了.注明:我的物理内存是4G.
大家看看,是不是很郁闷?按理说,是系统的标准API,提交给系统去操作了,结果却是出问题.用VC和DELPHI没问题,用BCB2007或BCB6都是一样的状况.
哎,到这节骨眼上出现问题,想死的感觉都有.
zzzl
(早安的空气)
版主
UID 590
Digest Posts 0
Credits 399
Posts 199
点点分 399
Reading Access 100
Registered 2004-11-29
Status Offline
#2
Post at 2009-9-28 21:59
Profile
|
Blog
|
P.M.
|
的确值得同情,不过弱弱的问一句,什么是AWE操作啊
kendling
(小冬)
高级版主
MyvNet
UID 703
Digest Posts
5
Credits 978
Posts 580
点点分 978
Reading Access 101
Registered 2005-2-18
Location 广东
Status Offline
#3
Post at 2009-9-29 17:13
Profile
|
Site
|
Blog
|
P.M.
|
|
把分配内存的工作话到DLL里,然后用VC去实现行不?
小冬
http://MyvNet.com
zzzl
(早安的空气)
版主
UID 590
Digest Posts 0
Credits 399
Posts 199
点点分 399
Reading Access 100
Registered 2004-11-29
Status Offline
#4
Post at 2009-9-29 21:30
Profile
|
Blog
|
P.M.
|
好办法
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-12-4 17:01
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.006643 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats