English
Forum

nProc and Repaint - Messages

 
- Page 1 -



E.T.
even so noticed: Is my XProfan-Program in the nProc on the works, becomes it z.B. through "Neuzeichnen"  from the exit brought. "Neuzeichnen"  exit Yes always on, if the Prog-Window minimizes, covers or moved becomes (covers z.B. through Screen saver ).
After such one Event scheind my nProc unending so engage To his, the window new draw To want. and this forever, with the Eieruhr for utterly Auslastung. too The Messages on The beam-Show to achieve no effect More. self the system-Menu becomes muddy, to the nProc have I z.B. the [X] for "Programm schließen" deaktiviert, this is then again active.
as long as I the window not verdecke or shift, runs the nProc klaglos through, with the integrally normalen arrow as Cursor....

example of my nProc:
CompileMarkSeparation
nProc Vergleichen

    global Liste1&,  Liste2&, Liste4&, Zaehler1&, Zaehler2&, Status&, ProgressBar_3&, ProgressBar_4&
    Declare Verg_Dat_1$, Verg_Dat_2$, Vergl_Str1$, Vergl_Str2$, Vergl_Pass&, Pos_L1&

    WhileLoop 0,Zaehler1&

        Vergl_Str1$ = GetText.Listview(Liste1&, &loop, 0)
        Verg_Dat_1$ = GetText.Listview(Liste1&, &loop, 1)

        WhileLoop 0,Zaehler2&

            Vergl_Str2$ = GetText.Listview(Liste2&, &loop, 0)

            If Vergl_Str1$ = Vergl_Str2$

                Verg_Dat_2$ = GetText.Listview(Liste2&, &loop, 1)

                IfNot Verg_Dat_1$ = Verg_Dat_2$

                    Inc Vergl_Pass&
                    AddString(Liste4&, Verg_Dat_1$ + "|" + Verg_Dat_2$)

                EndIF

            EndIf

            Sendmessage(ProgressBar_4&,$0400+2,int(100.0/Float(Zaehler1&)*Float(&loop)),0)

        EndWhile

        Sendmessage(ProgressBar_4&,$0400+2,0,0)
        Sendmessage(ProgressBar_3&,$0400+2,int(100.0/Float(Zaehler1&)*Float(&loop)),0)

    EndWhile

ENDPROC


is Yes hold no so komplizierter code, solely the vergleichen vieler Strings on Übereinstimmung (runs hold still as nProc vieeel faster as in XProfan..)
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/12/10  
 



« this Posting watts as Solution marked. »

- Page 3 -


goes still How in the example*:
CompileMarkSeparation
'URL: https://xprofan.com/intl/de/xpse/nproc-und-neuzeichnen-messages/#bottom
 {$cleq}
cls
long myThread=createThread(0,0,procAddr(eineProc),hWnd,0,0),b
print "fertig"

while 1

    waitinput 1000
    getExitCodeThread(myThread,addr(b))
    case b==123456 : break

wend

print "allesfertig"
end

nProc eineProc(long some)

    whileLoop 2

        setText(some,str$(getTickCount))
        sleep(1000)

    wend

    return 123456//oder exitThread(123456) wenn an beliebiger Stelle Thread abgewürgt werden soll wie "end 123456"

endProc


*XP-tested - Have here only XP.
 
11/13/10  
 



 
- Page 2 -


E.T. (13.11.10)

iF (13.11.10)
what speaks because against it the You your Proc - those hold "ewig" lasts - by CreateThread aufrufst instead of "normal"?


because in the Prog eh none what can make (should), as long as the Compare runs.


so How I the understood have is correct this but not, because it should Yes the UI-Thread Redraw and not "nichts" do. ^^

E.T. (13.11.10)
would be because then the HWND whom Repaint-commands come along, During low it on the others Thread wait (soryy, I stell me well something stupid on...)


think vlt. go ahead tricky. you have momentarily hold 1 Thread and want but the this 2 items "zugleich" does - what "natürlich" not the case is. ^^
 
11/13/10  
 



Wait I fummel you what... <-- ließt Yes to that Happiness none...
 
11/13/10  
 



look time whether you something like helps...
CompileMarkSeparation
11/13/10  
 



real Thread "unendlich" long ackern let without UI-Thread To "blockieren":
CompileMarkSeparation
so can still simply "Aufgaben"/ Threads indicate and the go yummy in the background worn out without the You yourself concern müsstest... (nProcs are still threadsicher ^^)
 
11/13/10  
 




E.T.
super, the erstere sees for me so from, as would it make, I Search.

Do I still same The others things rest let and install and testing (and derweil again what over Call's and ProcAddr in Assembler learn) ...

On each drop already time one large THANK YOU for your trouble!!!
and ifs works, then ...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/13/10  
 



E.T. (13.11.10)
super, the erstere sees for me so from, as would it make, I Search.


Ihgitt Please nimm abers 2.... the first is a übler Stinkschuh! ^^
 
11/13/10  
 




E.T.
SO, I komm the thing hither: only becomes now the Compare called and the XProfan-Prog runs moreover, it but should "warten"(or warten>nachschauen whether vergl. fertig>ggf. Window aktualisieren>warten), whether Compare already ready.
would be Yes think with Thread.Is(lThread) , but standing Yes with XPSE "fehlerhaft"...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/13/10  
 



look time to useful APIs: [...] 

simply with GetExitCodeThread look whether the Thread yet runs or to the end the ThreadProc by SendMessage ne UserMessage dispatching around the Hauptprogramm something "mitzuteilen" or simply per Return-worth from the Thread-Proc whom ThreadExitCode determine or by ExitThread ThreadExitCode on beliebiger place in the ThreadProc determine:
CompileMarkSeparation
'URL: https://xprofan.com/intl/de/xpse/nproc-und-neuzeichnen-messages/#bottom
 {$cleq}
cls
long myThread=createThread(0,0,procAddr(eineProc),hWnd,0,0),b
print "fertig"

while 1

    waitinput 1000
    getExitCodeThread(myThread,addr(b))
    case b==123456 : break

wend

print "allesfertig"
end

nProc eineProc(long some)

    whileLoop 2

        setText(some,str$(getTickCount))
        sleep(1000)

    wend

    return 123456//oder exitThread(123456) wenn an beliebiger Stelle Thread abgewürgt werden soll wie "end 123456"

endProc

 
11/13/10  
 



 
- Page 3 -



E.T.
Hm, GetThreadID()  would there well what, but first ex VISTA [...]  . must but XP walk...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/13/10  
 



goes still How in the example*:
CompileMarkSeparation
'URL: https://xprofan.com/intl/de/xpse/nproc-und-neuzeichnen-messages/#bottom
 {$cleq}
cls
long myThread=createThread(0,0,procAddr(eineProc),hWnd,0,0),b
print "fertig"

while 1

    waitinput 1000
    getExitCodeThread(myThread,addr(b))
    case b==123456 : break

wend

print "allesfertig"
end

nProc eineProc(long some)

    whileLoop 2

        setText(some,str$(getTickCount))
        sleep(1000)

    wend

    return 123456//oder exitThread(123456) wenn an beliebiger Stelle Thread abgewürgt werden soll wie "end 123456"

endProc


*XP-tested - Have here only XP.
 
11/13/10  
 




E.T.
Jo, so passt's... , thanks IF
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/14/10  
 



^^
 
11/14/10  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

24.361 Views

Untitledvor 0 min.
iF12/05/18
p.specht01/07/18
Ernst05/07/16
funkheld04/28/16
More...

Themeninformationen

this Topic has 3 subscriber:

iF (15x)
E.T. (10x)
unbekannt (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie