TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
itaym02
NA
66
0
using the same Graphics object in two treads
Oct 5 2004 5:09 PM
Greetings. I have two bitmaps (a ball and a man). I want them both to move on the screen, the man is handled in the main thread, The ball movment is handled by the secondary thread. I am using the same Graphics object for both bitmaps, since they are painted on the same window. Most of the time it works, but some time an Exception is thrown. The error is "Graphics object allready in use". I assume both threads tried to use the object simultaniusly. Is there a way to suspend a thread from another thread? Do any think of a better solution? Regards
Reply
Answers (
1
)
problem
is it safe to read listview properties from other thread than UI thread?