NsfItemInfoNext crash on 64bit Domino

Migrating my 3rd party CAPI app to 64bit Domino 8.5.1 on Windows2008 crashes with ‘PANIC: LookupHandle: handle out of range’.The app does a NSFItemInfo (which works) followed by NSFItemInfoNext which crashes.

I’ve single-stepped thru the code (using visual Studio 2008) and can find nothing wrong.

This works fine in 32bit environments.

Anyone have any ideas?

Subject: also problem with NSFItemInfo

Hi,

we also have a similar problem with NSFItemInfo on Windows 64Bit with Domino64 (8.5 and 8.5.1).

We read with NSFItemInfo the item_blockid (and the other values). The item_blockid.block is not changed on Win64/Domino 8.5 (64Bit); compared with the value before. With Win32/Domino-7 (32Bit) it works fine. Than the Domino64 on Win64 also crashes with “handle out of range”.

It seems to me like a bug in the library of Domino64. Is there a solution available (bug fix or something like that)?

thanks in advance

Stephan

Subject: any reason why intel compiler worked?

Is there a linker switch that maybe resolves this issue since the first guy on this thread mentions that switching to Intel Compiler resolved the problem. There must be some setting in MS compiler to help prevent this.

Subject: SOLUTION

If you are compiling a 64bit application with Microsoft compiler check out the below parameters and link. You will not find a whole lot of documentation on this but these parameters resolved this issue. Basically the invalid handle from leads to the invalid blockid that ultimately causes problem with NSFItemQuery().

-DW64 -DND64 -DHANDLE_IS_32BITS -D_AMD64_

Here is the link: http://planetlotus.org/profiles/daniel-nashed_40350

Subject: Still crashs with Intel compiler

I’m using Intel compiler and still got crash in this function. It crashed on Domino8.5.1 and FP3. Anyone has PMR with IBM for this issue?