Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.05.16;
Скачать: CL | DM;

Вниз

KOLThread puzzle me...some code works incroctly in/out of Thread.   Найти похожие ветки 

 
azsd ©   (2003-11-25 06:09) [0]

I searched in Russian FAQ but there no matching subjects.
In A thread,I create A form then Showmodal it,
When the thread Suspended,
Controls who let thread.resume are loss response.
Same code directly add in other controls ONxxxxx events are work croctly.
if I passed the Show Form codes,
Thread can works fine.
I Copy the Show form code to a separate procedure and call it in thread,It always hang.
I use delphi"s debug and traced the codes looped into message loops.
Here has an demoproject I Copyed From my GameRippper projects.

http://dangban.nyist.net/pub/gamerip/FaintThread.zip

I commented no usefull codes and translate text from chinese to english.
The codes were translate from MASM32 of my other Archive unpacker,sure it works correctly.

Azsd Ae,2003 11 25


 
Gandalf ©   (2003-11-26 12:32) [1]

Looks like toruoble with synchro... move all your form-action code in synchronize section. I may help.


 
azsd ©   (2003-11-26 16:45) [2]

Gandalf,thx your reply,yes if there havn"t form-action during Thread Execute it has no problem.
I"m Sorry I think I have not describe my question clearly.
I want to move form-action into the synchronize section.
I try to put these form-action to another function and call the function in Thread,But it hanged same as directly put in Thread.
Or I will try to use WaitsingleObject instead OOP codes.
It Drag me back to darkness asm age.

Azsd ae 2003 11 26 night


 
Gandalf ©   (2003-11-26 21:58) [3]

:) Show you synchronized code.



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

Текущий архив: 2004.05.16;
Скачать: CL | DM;

Наверх




Память: 0.45 MB
Время: 0.041 c
7-1081419928
Aleksandr
2004-04-08 14:25
2004.05.16
Как можно получить снимок со всего экрана (по аналогу PrintScrn)?


14-1083088168
Hawk2
2004-04-27 21:49
2004.05.16
Анимашки


7-1081363895
Namiq
2004-04-07 22:51
2004.05.16
как получить изображение из webcam


1-1083610229
apel
2004-05-03 22:50
2004.05.16
использование модуля на С++


1-1082631258
Mim1
2004-04-22 14:54
2004.05.16
Unicode





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский