Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Компоненты";
Текущий архив: 2005.10.09;
Скачать: [xml.tar.bz2];

Вниз

Тестирование интерфейса времени проектирования   Найти похожие ветки 

 
Ranger ©   (2004-11-30 20:31) [0]

У мена есть компонентю,порожденный от TComponent.Так вот как его тестировать во врема проектирования.Нашел на этом форуме как можно тестировать компонент,создавая его динамически,но у того компонента было св-во Parent,для его визуализации.У потомков TComponent его же нет,поэтому непонятно как его показать на форме.Прочитал в книге М.Голованова и Е.Веселова как ето можно делать запуская 2 Delphi,но у меня так не получилось.Может кто знает как сделать?


 
GuAV ©   (2004-11-30 20:47) [1]

F1:

Testing installed components

You can test the design-time behavior of a component after you install it on the Component palette. This is particularly useful for debugging newly created components, but the same technique works with any component, whether or not it is on the Component palette. For information on testing components that have not yet been installed, see Testing uninstalled components.

Testing your components after installing allows you to debug the component that only generates design-time exceptions when dropped on a form.

Test an installed component using a second running instance of the IDE:

1 Choose Project|Options|and on the Directories/Conditionals page, set the Debug Source Path to the component"s source file.
2 Then select Tools|Debugger Options. On the Language Exceptions page, enable the exceptions you want to track.
3 Open the component source file and set breakpoints.
4 Select Run|Parameters and set the Host Application field to the name and location of the Delphi executable file.
5 In the Run Parameters dialog, click the Load button to start a second instance of Delphi.

6 Then drop the components to be tested on the form, which should break on your breakpoints in the source.


 
Ranger ©   (2004-11-30 21:02) [2]

>GuAV
Вот так именно написано в книге.Но ни черта не получаетса таким образом


 
Ranger ©   (2004-11-30 21:06) [3]

>GuAV
Как я понял  Delphi executable file - это Delphi32.exe?


 
GuAV ©   (2004-12-01 01:47) [4]

Ranger ©   (30.11.04 21:06) [3]
Delphi executable file - это Delphi32.exe?


да.

всё работает. (у меня тоже D7).

сделай всё в точности по пунктам.

только BreakPoint сначала выделен зеленым как неактивный, но он всё равно работает.


 
Ranger ©   (2004-12-02 00:03) [5]

Да действительно заработало,правда как-то коряво.Может Делфя кривая,а может руки:).Короче нажимаю load-> появляется CPU,затем F9-> начинает запускаться Делфя и раз message:Project delphi32.exe raised exception class EPackageError with message "Can"t load package dsnapcrba70 Не удается найти указанный файл"Process stopped.Use step or run to continue.Ну я на OK и дальше F9.Опять message:Project delphi32.exe raised exception class EIBClientError with message "InterBase library gds32.dll not found in the path.Please install interbase to use this functionality.Process stopped.Use step or run to continue. - ну последнее думаю не страшно.OK->F9 и наконец Delphi запускается, дальше все вроде нормально. Большое спасибо за подсказку!



Страницы: 1 вся ветка

Форум: "Компоненты";
Текущий архив: 2005.10.09;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.016 c
6-1118617054
mm0
2005-06-13 02:57
2005.10.09
Отпавка данных(POST)


2-1125316242
Dust
2005-08-29 15:50
2005.10.09
весьма хитраяситуация... именно так, без пробелов


1-1126785094
Новичок1
2005-09-15 15:51
2005.10.09
Здравствуйте , подскажите плз как изменить цвет кнопки


14-1127118053
SergP.
2005-09-19 12:20
2005.10.09
Че за приколы с WIN_XP


4-1123670306
Urgen
2005-08-10 14:38
2005.10.09
Service





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский