Dbg: Invalid resource type in define