| |
|
|
Georg Teles | Very plenty worth lay I on tidy Speicherleerung, here small example moreover
DEF SetWindowLong(3)!"USER32","SetWindowLongA"
'DEF initDLL(<Anzahl Parameter>)!"eineDLL.dll","initDLL"
'DEF DEinitDLL(<Anzahl Parameter>)!"eineDLL.dll","DEinitDLL"
Declare end%, dll&, icon&
winmain()
activities()
aufraeumen()
Proc winmain
'dll& = UseDLL("eineDLL.dll")
'If dll&
' initDLL(<Parameter>)
'EndIf
icon& = Create("hIcon","MAIN")
Windowtitle "Titel"
Windowstyle 8+16+512'8 = with Icon in the Window Title
'512 = Dialogverhalten > to termination the Loop becomes the code moreover carryed out
Window 0,0-800,600
SendMessage(%HWnd,$80,1,icon&)'Icon on Window Title settle
SetWindowLong(%HWnd,-16,$92CA0000)'minimize & X - Button, maiximieren deaktiviert - enhance inaktiv
'SetWindowLong(%HWnd,-16,$92CE0000) 'minimize & X - Button, maiximieren deaktiviert - enhance active
'SetWindowLong(%HWnd,-16,$92CB0000) 'minimize, maiximieren & X - Button, - enhance inaktiv
'SetWindowLong(%HWnd,-16,$92CD0000) 'minimize, maiximieren & X - Button, - enhance active
DrawIcon icon&,10,10
Endproc
Proc activities
Clear end%
WhileNot end%
Waitinput
If (%Key = 2) | (%Key = 27)' X or. ALT + F4 or ESC
'ShowWindow(%HWnd,0) 'circa "Flackern" of Fensterobjekten To prevent
Inc end%
EndIf
Endwhile
ENDPROC
Proc aufraeumen
DeleteObject icon&
If dll&'DLL straighten up, possible DLL interne "free"-function before Call
'DEinitDLL(<Parameter>)
'FreeDLL dll&
EndIf
print "aufgeräumt ..."
WaitInput
ENDPROC
END
Hello |
|
|
| |
|
|
|
| And then coming everything differently.
hard spoken - there with such How obigen Things the OS/ Windows itself with Prozessende faster and effizienter bereinigt, as if one it self by XProfan tätentut, is it unfortunately Time and Stromverschwendung.
Can too forever quarrel, whether solches "Aufräumen" so guter or badly Style is - even if the want naturally nachvollziehbar is.
as question words, what plainer is for OS: 1.000 deleteObjects or 1x "alle Objects in Müll", where "alle Objects in Müll" the OS only self indicate can.
But only Generve on hohem level and with windows small NT, would I for my obigen testify The hand neither in that fires lay.
on the others Page should one thereafter but too streng the hWnd yet destroy and the memory for Variables and and and... power indeed no human. ^^ (wozu too)
gives only very very very little functions with them in the windows-Help aufgeführt is, that they Ressourcen produce The whom Process überstehen. |
|
|
| |
|
|
|
Georg Teles | Moin,
Yes unfortunately Verschwendung of Time & power, have it me so angewöhnt from this reason:
iF (14.02.2016)
as question words, what plainer is for OS: 1.000 deleteObjects or 1x "alle Objects in Müll", where "alle Objects in Müll" the OS only self indicate can.
I have no idea when the happens, wieso and How the happens meant have I but not only The DLLs separate The Vars also with DeleteObject deleted go should, or is it now still alike ?
iF (14.02.2016)
gives only very very very little functions with them in the windows-Help aufgeführt is, that they Ressourcen produce The whom Process überstehen.
momentum time, have I what not come along, means the now, XProfan clear now at Prozessende yourself on or. windows power the at End of program ? |
|
|
| |
|
|
|
| clear, can You quiet valiant his.
XProfans End (exitProcss) closes you indeed any Window etc. -
sees one too seldom one DestroyWindow(hWnd) on the XProfan-Program-end.
Bisl what becomes XProfan of itself from Remove -
but sure no Window etc. or memory everybody can itself holte.
the power windows everything stunned weils Yes none Process More moreover gives and its thereby faster as if one this händisch tät. |
|
|
| |
|
|
|
Georg Teles | Hmm, Yes %HWnd on the Prozessende To destroy power little sense. what XProfan removes and what not, can only Roland answer I stay first once with of my Pingeligkeit but I keep the in the eye |
|
|
| |
|
|