Pass objptridx_t in newdemo.cpp