查看单个帖子
旧 2009-05-06, 05:40 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】memory managemen

memory management
memory management
hi,
is it possible to supply customised new/delete operators for the dwgdirect?
i know it is possible to supply the functions
odrxalloc
odrxrealloc
odrxfree
but these only appear to be used sometimes. there does not appear to be possible to pass down any template traits to the library.
(ie) in the loki tradition.
regards,
hanh
hi, i'm fan of loki too. but dwgdirect and objectarx are not template libraries. i think you have some "hooks" where you can place your own memory management. one is the class exundocontroller. others may be oddbpagecontroller, oddbfiler, etc...
chudomir
you can define your own global new and delete operators (make sure you do not link in our alloc lib if you do this). if you do this, along with defining odrxalloc, odrxrealloc, and odrxfree, you should get access to all dwgdirect memory allocations.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)