Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser toolbar
#22
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-


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)