Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения
KANSoftWare

Отладка DLL в Windows XP

Delphi , Файловая система , DLL и PlugIns

Отладка DLL в Windows XP

Оформил: DeeCo
Автор: http://www.swissdelphicenter.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дdt. Dies reicht leider bei Windows XP nicht mehr

Damit Delphi die DLL beim Ausfьhren des Programmes erkennt, muss folgendes gemacht werden:

Das Programm muss die DLL laden. Danach Ctrl-Alt-M innerhalb von Delphi drьcken, um die Module aufzulisten. Unter umstдnden wird hier die DLL ohne Pfadangabe angezeigt. Wenn dies der Fall ist, handelt es sich um das hier beschriebene Problem.

Lцsung:
Auf die DLL klicken, ьber 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.

Статья Отладка DLL в Windows XP раздела Файловая система DLL и PlugIns может быть полезна для разработчиков на Delphi и FreePascal.


Комментарии и вопросы


Ваше мнение или вопрос к статье в виде простого текста (Tag <a href=... Disabled). Все комментарии модерируются, модератор оставляет за собой право удалить непонравившейся ему комментарий.

заголовок

e-mail

Ваше имя

Сообщение

Введите код




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: DLL и PlugIns ::


реклама



©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru Rambler's Top100

Время компиляции файла: 2024-04-24 22:55:34
2024-04-25 02:36:32/0.0062758922576904/2