05-19-2016, 08:10 AM
as it can be very fast used code, and text file is read/written each time the function is called, i want to ensure there is no corruption and/or bad write/reading of datas.
The triggered QM code is in a function, and i ticked the "only single thread" option of this function.
Must I too use lock in the function???
function hwnd idObject idChild
Acc a.FromEvent(hwnd idObject idChild)
lock
str url=a.Value
...
some code
....
_s.getfile("q:\test.txt" 0 -1)
IStringMap m._create
....
some code
....
m.GetList(f....)
f.setfile("q:\test.txt"0 -1)
lock-
The triggered QM code is in a function, and i ticked the "only single thread" option of this function.
Must I too use lock in the function???
function hwnd idObject idChild
Acc a.FromEvent(hwnd idObject idChild)
lock
str url=a.Value
...
some code
....
_s.getfile("q:\test.txt" 0 -1)
IStringMap m._create
....
some code
....
m.GetList(f....)
f.setfile("q:\test.txt"0 -1)
lock-
