From: Benjamin Chang (bchang++at++artic.edu)
Date: 11/10/2003 09:27:42
hi,
can anyone give me some pointers on correct memory management practices in C++
when writing a loader? when i use my loader with perfly it sometimes segfaults
on medium-sized objects (>200K polys); i am weak and sloppy from years of java &
such, so any guidelines would be much appreciated.
on a related note: i also get a freeze when building more than about 70 DCS's.
everything loads and perfly starts, but gets a black screen w/o the GUI. this
happens even when the geometry is minimal, one poly in each DCS. loading an
object with an equivalent or greater number of polys but just one DCS causes no
problems.
i've noticed a similar behavior in larger apps too, where after loading many
objects the app freezes black. it's happened with the obj and iv loaders as
well as the one i'm writing.
converting the objects to .pfb format solves the problem, but i'm still curious
about why this happens.
thanks,
-- Ben Chang Assistant Professor, Art and Technology Studies School of the Art Institute of Chicago 112 S. Michigan, Chicago IL 60603 312.345.3561 bchang++at++artic.edu
This archive was generated by hypermail 2b29 : Mon Nov 10 2003 - 09:38:06 PST