Dreamora #1 pass a byte ptr instead of a type handle to the query, that should work.you can not pass BM object out.