资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

高手在吗:delphi5在XP下装载DLL文件后就不能单步跟踪调试,在win2000下没有问题.

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

谁遇到这问题吗

网友回答:

发表者:aiirii

...debug   a   DLL   in   Windows   XP?    
  Author:   Elias   Zurschmiede      
  Homepage:   http://www.delight.ch    
   
  Until   up   to   Win2k,   you   had   to   set   the   HostApplication   on   Start=>Parameter   to    
  debug   a   DLL.   This   will   not   work   on   Windows   XP.    
   
  That   Delphi   will   know   the   DLL   if   you   run   the   progam,   you   have   to   do   the    
  following:    
   
  The   program   must   load   the   DLL.   After   this,   press   Ctrl-Alt-M   in   Delphi,   to   list    
  all   modules.   Sometimes   there   will   be   the   DLL   with   path.    
   
  Solution:    
   
  Right   click   on   the   DLL,   select   "Reload   symbols"   and   set   the   full   path   to   the    
  DLL.   Now   the   breakpoints   should   be   active.    
   
   
  When   the   DLL   will   be   compiled   in   the   system   path   (directory   in   PATH)   this    
  problem   dont   occur.    
   
   
  {****}    
   
  Bis   und   mit   W2k   hat   es   gereicht,   unter   Start=>Parameter=>HostAnwendung   eine    
  EXE   an   zu   geben,   welche   die   DLL   l輐t.   Dies   reicht   leider   bei   Windows   XP   nicht   mehr    
   
  Damit   Delphi   die   DLL   beim   Ausfren   des   Programmes   erkennt,    
  muss   folgendes   gemacht   werden:    
   
  Das   Programm   muss   die   DLL   laden.   Danach   Ctrl-Alt-M   innerhalb   von   Delphi   drken,    
  um   die   Module   aufzulisten.   Unter   umst鄚den   wird   hier   die   DLL   ohne   Pfadangabe   angezeigt.    
  Wenn   dies   der   Fall   ist,   handelt   es   sich   um   das   hier   beschriebene   Problem.    
   
   
  L飉ung:    
   
  Auf   die   DLL   klicken,   er   die   rechte   Maustaste   "Symbole   neu   laden"   anklicken   und    
  dann   den   kompletten   Pfad   zur   DLL   angeben.   Jetzt   sind   die   Breakpoints   aktiv.    
   
  Falls   die   DLL   in   einen   Systempfad   compiliert   wird   (ein   Verzeichnis   im   PATH),    
  besteht   dieses   Problem   nicht.    
   
  http://www.swissdelphicenter.ch/torry/showcode.php?id=861  
   
 

发表者:jack_4826

我也发现这个问题,但和楼主不同的是原来是可以跟踪的,但某天突然不能跟踪,到现在也不能解决,大家说说!!

发表者:hhnick

是有这个问题,D7好像就没问题。


 

 
热门推荐笔记本: IBM笔记本
相关文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved