BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TBimap and thread

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Yoann chaigneau
Guest





PostPosted: Wed May 05, 2004 9:46 am    Post subject: TBimap and thread Reply with quote



I have a problem to create bitmaps in a thread. Sometimes when i want to
save my bitmap i have a EouOfResources exception and i don't know why. After
a few experimentations, it seems that when i do a FillRect on the canvas of
my bitmap, sometimes the savetofile function generate this exception. Has
anyone an idea why ?


Back to top
Damon Chandler (TeamB)
Guest





PostPosted: Sun May 09, 2004 4:16 pm    Post subject: Re: TBimap and thread Reply with quote



Hi,
Are you accessing the bitmap from multiple threads? In particular,
if you're drawing to the bitmap's Canvas from multiple threads, the
TCanvas class has Lock() and Unlock() methods, which provide
drawing-based synchronization. Does your code work when executed within
the context of the main thread?

Good luck,
--
Damon (TeamB)


Yoann chaigneau wrote:
Quote:
I have a problem to create bitmaps in a thread. Sometimes when i want to
save my bitmap i have a EouOfResources exception and i don't know why. After
a few experimentations, it seems that when i do a FillRect on the canvas of
my bitmap, sometimes the savetofile function generate this exception. Has
anyone an idea why ?

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.