NFSItemInfo doesn't always return BLOCKID

This is really weird. Have small program very similar to some in the samples where I use NSFItemInfo function and it is not returning the BlockID. Therefore the server crashes when I call NSFItemQuery. I seen another post on here from like April of last year, with a response may of this year from someone that seen the same thing; but no solution. Does anyone know a solution to this problem?

It does not seem to happen all the time but when it does it is simply because the BlockID is not passed back.

Thank you.

Subject: solved

THis had to do with the 64bit compilation where I did not use the linker switch to keep handles 32bit. What is weird though is that most of the time these functions worked but every now and then they would not and fail. However, ever since compiling with the linker switch I have not send the same issue.