Delphi - timer inside thread generates AV

前端 未结 6 1976
忘掉有多难
忘掉有多难 2020-12-07 23:56

I have the following thread code which executes correct first time. After that from time to time I get an AV on the Execute method of the thread, e.g

6条回答
  •  萌比男神i
    2020-12-08 00:11

    Your thread is working on GUI controls (Assuming TJvStringGrid is a GUI control). That is never a good idea and can give unexpected results. No other thread then the main thread should touch GUI stuff.

提交回复
热议问题