Message 1 of 1
Getting strange handles for block references in certain files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?