 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Yoann chaigneau Guest
|
Posted: Wed May 05, 2004 9:46 am Post subject: TBimap and thread |
|
|
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
|
Posted: Sun May 09, 2004 4:16 pm Post subject: Re: TBimap and thread |
|
|
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 |
|
 |
|
|
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
|
|