Getting strange handles for block references in certain files

Getting strange handles for block references in certain files

ottosson_mathias
Advocate Advocate
318 Views
0 Replies
Message 1 of 1

Getting strange handles for block references in certain files

ottosson_mathias
Advocate
Advocate

When I'm querying the database for block references in certain files, I'm getting handles like -4066801656873546453 when they usually look something more like 153919. And when I try to get the block reference using the handle, it crashes my application with error "eUnknownHandle"!

 

long handle = -4066801656873546453;
Handle hn = new Handle(handle);
ObjectId blockId = sideDb.GetObjectId(false, hn, 0); // Crashes here!

 

It only seems to occur for certain files, but I can't really find any differences when looking at other files in the same project that do work.

 

Anybody knows what's going on, and what can I do about the strange handles?

0 Likes
319 Views
0 Replies
Replies (0)