CnPack Forum


 
Subject: CnDebugger access violation
kinezos
新警察
Rank: 1



UID 67175
Digest Posts 0
Credits 6
Posts 2
点点分 6
Reading Access 10
Registered 2011-8-27
Status Offline
Post at 2011-8-27 00:31  Profile | Blog | P.M. 
CnDebugger access violation

when NDEBUG is defined CnDebugger.TraceEnter generates an access violation
at line
Index := FThrdIDList.IndexOf(Pointer(ThrdID));

please help
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2011-8-28 19:48  Profile | Blog | P.M. 
Thanks. I'll check it.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2011-8-28 20:43  Profile | Blog | P.M. 
It's because CnDebugger is nil when NDEBUG is defined.

Our code has some unuseful access to CnDebugger's filelds when NDEBUG is defined. We'll correct it at next version.
Top
kinezos
新警察
Rank: 1



UID 67175
Digest Posts 0
Credits 6
Posts 2
点点分 6
Reading Access 10
Registered 2011-8-27
Status Offline
Post at 2011-8-31 00:36  Profile | Blog | P.M. 
ok Passion
now comment out TraceEnter

usefull extensions
dynamic run-time control of trace output
do not link CnDebug in the exe when NDEBUG is defined

thanks
Top
 




All times are GMT++8, the time now is 2024-11-23 16:18

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008110 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP