高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|