> for (int i=0; i<bonesOut.getSize(); i++) > { > lua_pushnumber(l, (int)bonesOut[i]); > } > Mind the stack. You should add something like "luaL_checkstack(L, bonesOut.getSize())" before the loop... -- Roberto