Closed fabiomassimo closed 11 years ago
Hey,
Uhm yea thats going to be a little more complex... I've never tried adding landscape orientation to it.
OVERLAY_VIEW_WIDTH
is based on the width of the portrait view...initAndAllocContainers
, startPosMonitoring
& startCamera
it just re-allocates everything.. so I'm not sure how well ARC handles the deallocationsUnfortunately I'm leaving for vacation in a few days so I don't think I'll have too much time to look at this :/ I'll try a few things though
Maybe experiment with a few things.. the memory management lacks some stuff for re-usability (right now you can't really turn AR on and Off unless you release or dismisss the view which is calling everything... --> that triggers all the deallocs and releases)
Hope that helps
Any updates on this?
This issue will be the up to date one https://github.com/promet/PRAugmentedReality/issues/34
Don't know if it is also linked to ARC / non ARC issue but I was trying to add rotate orientation feature by adding this snippet of code:
and this new function:
but it crashes and console output is:
malloc: * mmap(size=231432192) failed (error code=12) * error: can't allocate region *\ set a breakpoint in malloc_error_break to debug
Thanks again for all.