Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to synchronize or not 1

Status
Not open for further replies.

Jean_

Programmer
Feb 5, 2019
1
NL
Hello,

C++ builder 6 (yes it still works).

I have a form that is created by the main thread, the form hosts a class for databases and a drawgrid to show them.
1. Can a thread safely execute members from that class without synchronize.
2. Can a thread safely operate on the drawgrid without synchronize, for instance delete rows?

My understanding is that both answers are yes, but i'd like to be sure.

Thanks!
 
As far as i know that GUI is not thread safe, so if you're planing to update the GUI you have to use Synchronize() function in the thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top