|
|
|
Создание thread (в С++ Bilder-e пытаюсь работать)..
|
|||
|---|---|---|---|
|
#18+
Начинающему, подскажите вот про что... Я использую компонент...ListView для получения какого то списка... т.е. поток постоянно работает... до завершения программы...И я вижу список обновляемый с какойто переодичностью.. Например пишу: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. И к примеру такое действие на кнопке...По созданию потока.. Код: plaintext 1. 2. 3. Вот если я делаю обычным дествием, вызов функции к примеру: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Вапрос Звучит так... Почему этот же текст не работает в потоке... Т.е. Не отображается в компоненте ListView формируемый мною список... во время выполнения... ЧТо я здесь не так зделал может подскажите?... За ранее всем спасибо! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 16.03.2006, 20:01 |
|
||
|
Создание thread (в С++ Bilder-e пытаюсь работать)..
|
|||
|---|---|---|---|
|
#18+
When you use objects from the class hierarchy, their properties and methods are not guaranteed to be thread-safe. That is, accessing properties or executing methods may perform some actions that use memory which is not protected from the actions of other threads. Because of this, a main thread is set aside to access VCL objects. This is the thread that handles all Windows messages received by components in your application. If all objects access their properties and execute their methods within this single thread, you need not worry about your objects interfering with each other. To use the main thread, create a separate routine that performs the required actions. Call this separate routine from within your thread's TThread.Synchronize method. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 16.03.2006, 21:59 |
|
||
|
Создание thread (в С++ Bilder-e пытаюсь работать)..
|
|||
|---|---|---|---|
|
#18+
может поможет http://]http://www.cbuilder.ru/WinLesson/bles2_1.htm ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.03.2006, 14:35 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=33606708&tid=2031735]: |
0ms |
get settings: |
11ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
39ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 243ms |
| total: | 367ms |

| 0 / 0 |
