Problem with NIFGetLastModifiedTime

Does anybody ever use this C API function?

I just can’t make it work. It always crashes, no matter what kind of collection I pass here. Collection is already open, and I can retrieve data from it without any problems. I’m working with Lotus Domino database, C API SDK 6.5.3 is used.

Thanks

Subject: Problem with NIFGetLastModifiedTime

just post the lines where you call this function. if it crashes its maybe just some pointer confusion?

Markus Seitz

markus.seitz@icodex.com

Subject: RE: Problem with NIFGetLastModifiedTime

There is absolutely nothing special in this function usage:

TIMEDATE dt = {0};

::NIFGetLastModifiedTime(hCollection, &dt);

hCollection is properly initialized in this code, because just before this code I read data from collection, and the data returned without errors.

I just want to see at least usage example, that works - I can’t understand what I am doing wrong.

Thanks.

Subject: RE: Problem with NIFGetLastModifiedTime

i’ve just added these two lines to a part of source, right after NIFOpenCollection. it returned a valid timedate. (although documention is unclear and says its a sequence number).

maybe you’ve encountered a bug? sorry, i don’t know.

Markus Seitz

markus.seitz@icodex.com

Subject: RE: Problem with NIFGetLastModifiedTime

Thanks for the responce…

Do you work with local or server database?

Subject: RE: Problem with NIFGetLastModifiedTime

OK, there are several lines of code:

STATUS lnRes = ::NIFOpenCollection(hViewDb, hDataDb, hViewNoteID, 0, NULLHANDLE, &m_hCollection, NULL, NULL, NULL, NULL);

if (NOERROR == lnRes)

{

TIMEDATE dtLastModif = {0};

::NIFGetLastModifiedTime(m_hCollection, &dtLastModif);

}

NIFGetLastModifiedTime still crashed in 100% of cases. I use C toolkit 6.5.3, Lotus Notes 6.5 and Domino server 6.5, database is located on the server.

What I’m doing wrong?

Subject: RE: Problem with NIFGetLastModifiedTime

i’ve tried it with a local db only.

one more thing: you should get a nsd-report. feel free to send it to me, i’ll have a look.

Markus Seitz

markus.seitz@icodex.com