Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 如何捕获出现异常时的错误行数?
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 如何捕获出现异常时的错误行数?
stephenmax
(绿毛虫)
普通灌水员
UID 4757
Digest Posts 0
Credits 91
Posts 44
点点分 91
Reading Access 10
Registered 2007-1-19
Location SNDA
Status Offline
#1
Post at 2008-9-11 19:42
Profile
|
Site
|
Blog
|
P.M.
|
如何捕获出现异常时的错误行数?
不知cnpack中有这样的工具函数吗?
就是出错时能记录下错在什么单元的那一行?
看了下网上帖子,要有map文件,这个好办,还要有崩溃时的出错地址,这个怎么获取?
PS,需要这种方法能脱离开发环境
[
本帖最后由 stephenmax 于 2008-9-11 19:45 编辑
]
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2008-9-11 20:00
Profile
|
Blog
|
P.M.
Eurakelog能,是个比较好的解决方案然而是商业软件,需要花钱的。
JCL中也有类似功能。CnPack IDE 专家包的Debug版的异常捕获便是用的CnDebug结合JCL的机制,详情可参考cnpack组件包中的DebugSender例子以及CnDebug.pas的帮助文档,另外还需安装JCL包。
stephenmax
(绿毛虫)
普通灌水员
UID 4757
Digest Posts 0
Credits 91
Posts 44
点点分 91
Reading Access 10
Registered 2007-1-19
Location SNDA
Status Offline
#3
Post at 2008-9-11 20:15
Profile
|
Site
|
Blog
|
P.M.
|
好的,,,我去试试。
看见好像madExcept,Eurakelog都能,但这些东西都貌似太复杂了
delphi还是太傻瓜,很多东西都不够好,c++里面好像有宏能直接获取当前行数。
stephenmax
(绿毛虫)
普通灌水员
UID 4757
Digest Posts 0
Credits 91
Posts 44
点点分 91
Reading Access 10
Registered 2007-1-19
Location SNDA
Status Offline
#4
Post at 2008-9-11 20:15
Profile
|
Site
|
Blog
|
P.M.
|
inline也是最近两年才有。
以前想往exe里面添加个自定义共享段,唉,我的娘来,搜资料可搜苦了,而这个在c++里面就很简单搞定。。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#5
Post at 2008-9-12 08:37
Profile
|
Blog
|
P.M.
Delphi确实没触及到这么底层的东西,像__LINE__, __FILE__等都没有。
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-23 10:15
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007086 second(s), 7 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