I have written my first program using multi-threads. Everything was working well up until last evening. I started getting invalid control ID error messages on lines of code which write to a text box that have been working for weeks. An example is below:
SetCtrlAttribute (tabPanelEngrg, TAB_ENG_MSG, ATTR_CTRL_VAL, bfr);
Because this SetCtrlAttribute works OK some places, I suspect that I have violated some sharing between threads. The area of most changes in the past 24 Hrs has been in standard serial port code. Would this be a common symptom of thread violation? It seems that TAB_ENG_MSG shouldn't become invalid because it is a compiled in constant. Possible the tab panel handle is being corrupted.
Any comment or help on this?
I have read the two tutorials on threads. Are there any quick "rules of thumb" for writing threads.
Tahnks,
Doug Wendelboe
Solyndra Inc.
Fremont, CA