Yes i was try do it in this way:
proc SearchDisk uses ebx esi edi ebp, StartPath, NameSearchFor, win32_find_data, ProcAddress
pushfd
locals
...
endl
...
popfd
ret
endp
But i steel have strange situation:
This procedure used about 56MB RAM. Now If I call this procedure in my program two times:
invoke SearchDisk, 'c:','*',WFD, ProcAddress
; at now task manager shold show RAM expandable = before call SearchDisk ??? please tell me if i be mistaken in this point.
; It belongs to remember that the SearchDisk it recurrent procedure.
; Anyway so no happend and after next call need RAM grows
invoke SearchDisk, 'd:','*',WFD, ProcAddress
I suspect that it will happend because i not relase memory in right way