Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
技术板块灌水区
» Delhpi Dll 编程收集贴
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: Delhpi Dll 编程收集贴
skyjacker
版主
茶农
UID 2239
Digest Posts
9
Credits 617
Posts 269
点点分 617
Reading Access 100
Registered 2006-6-8
Status Offline
#1
Post at 2007-11-26 16:13
Profile
|
Blog
|
P.M.
|
Delhpi Dll 编程收集贴
http://www.delphibbs.com/keylife/iblog_show.asp?xid=27463
http://www.100q.com.cn/delphi/delphi_9976.html Delphi DLL的创建和运用 http://www.delphichm.com/html/Database/image/20070621/11.html delphi COM中分配内存的注意事项 http://msdn2.microsoft.com/en-us/library/ms810466.aspx Heap: Pleasures and Pains http://blog.csdn.net/Tunix126/archive/2006/10/11/1330484.aspx 堆:欢乐和痛苦 http://blog.csdn.net/crazycock/archive/2004/10/17/139767.aspx DLL调用与释放的一点切身体会
一壶清茶煮青春.
skyjacker
版主
茶农
UID 2239
Digest Posts
9
Credits 617
Posts 269
点点分 617
Reading Access 100
Registered 2006-6-8
Status Offline
#2
Post at 2007-11-26 16:16
Profile
|
Blog
|
P.M.
|
Dll 一般遵循谁分配谁释放的原则。
矛盾在这:有时候 EXE 不知道 DLL 中分配了多少内存。
比如, 在 Exe 中分配了大小为 MAXSIZE 的 buffer,
如果在 dll 中往 buff 填充了大于 MAXSIZE 的数据,问题就出现了。
一壶清茶煮青春.
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#3
Post at 2007-11-27 13:57
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-11-22 05:59
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007490 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