查看单个帖子
旧 2009-05-04, 05:24 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】can two thread render at the same time

can two thread render at the same time
can two thread render at the same time
hi,
i am developping a program to view dwg file under windws system. now i need some help.
i have two threads which have different odgsdevice but share the same oddbdatabase. i want to let both the two threads render on different dc.one is on the window dc and the other is on the memory dc.
the problem is that, if the two threads run at the same time, only one thread can work.if the two threads run at the different time, each of them is ok.
can anybody tell me why?
currently accessing the same database from different threads is not safe even for rendering (rendering may cause xref loading which actually modifies the database).
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)