hi
i got API running
- HMG_Click_DLLcall2.jpg (60.86 KiB) Viewed 9520 times
Code: Select all
DllCall("user32.dll",DLL_OSAPI,"SendMessageA" ,;
ControlHandle ,;
WM_SETTEXT ,;
LEN(cStatusBox),;
cStatusBox )
* DllCall("user32.dll",DLL_OSAPI,"InvalidateRect",ControlHandle ,1)
* SendMessage(ControlHandle ,;
* WM_SETTEXT ,;
* LEN(cStatusBox),;
* cStatusBox )
InvalidateRect (ControlHandle, NIL ,.F.)
my 1st DLLcall work while harbour Version fail
my 2nd Dllcall fail while harbour Version work
now Memory does not increase and i can "see" Output
BUT ... it begin Quick but with every line it get slower and slower ...
when got to next PRG ist start again with "full speed" and than slow down.
i know that 32 Bit Apps will get slower when reach 2 GB Limit but i'm far away from Memory Limit now.
as Console show same it must be a serious Problem with harbour which i don't understand.
---
it does have 3 x EditBox where i want "Output".
it "seem" me that Graphic is "at Limit" an all goes to Queue.
it is like a "Cache". when it is "full" it slow down.
App is so "busy" that you NOT allowed to switch to other App while than it will not show Output any more.
it seems to "stop" when "lost Focus". you just can wait until End or break it.
does some "Sleep" or "DoEvent" help in this Case
it is is NOT the Code while when using
in Click.INI it take less than 5 Seconds to do the Work.
---
what about Thread for each EditBox. how do i "sync" Thread under harbour / HMG
Thread "Input" read Data and "wait" until Thread "Output" is ready to "receive" data.
is the a Sample which show me how it work
as usual here is full Source of Project.
please help me to find "Speed" for "Output"