Hi
I want to access NSF in DSAPI. Can I do this?
When I use the Notes C API code to get handle to NSF in DSAPI, the server starts to mis-behave like HTTP tasks hangs, server crash etc
Thanks
Atin
Hi
I want to access NSF in DSAPI. Can I do this?
When I use the Notes C API code to get handle to NSF in DSAPI, the server starts to mis-behave like HTTP tasks hangs, server crash etc
Thanks
Atin
Subject: Use DSAPI with Notes C API
Show your code, and maybe someone can help. Maybe. Very few people work with the C API, and fewer work with DSAPI. But nobody can possibly help you with your problem without seeing your code.
Also, if you are causing server crashes, you should post the fatal thread data from the NSD file.
-rich
Subject: RE: Use DSAPI with Notes C API
I am not discussing about the issues in the code.
What all I want to ask is - “Is it feasible to read data from NSF in the DSAPI filter?”
Thanks
Atin
Subject: ignore
Subject: RE: Use DSAPI with Notes C API
Yes, it is certainly possible.
There aren’t a lot of samples of DSAPI code on-line, but I did find one that does make NSF calls. Here’s a link to a page that Ben Langhinrichs put up with the sample code that he showed at a recent conference presentation. One of the attachments, DspLinks.cpp is a DSAPI filter, and the code contains various NSF calls.
Link: http://geniisoft.com/showcase.nsf/0/6eb51b22b198fcdf85257ea7000dc7eb
-rich
Subject: RE: Use DSAPI with Notes C API
Thanks for your response.
I am able to read data from NSF now.
I want one more help from you.
I am using AllocMem function to allocate memory. The issue is that the memory is allocated for 8 bytes only irrespective of the size I specify.
Below is the code:
char *Remote_Addr = NULL;
char *ConfigName = NULL;
Remote_Addr = (char *)context->AllocMem(context, 4, 0, &dwError);
ConfigName = (char *)context->AllocMem(context, 32, 0, &dwError);
// Always Prints 8
printf(“\n sizeof(Remote_addr) %lu :”, sizeof(Remote_Addr));
// Always Prints 8
printf(“\n sizeof(ConfigName) %lu :”, sizeof(ConfigName)); // Always Print 8
Its always allocating the memory for 8 bytes.
Can you guide me what is the cause for the same?
Thanks
Atin
Subject: RE: Use DSAPI with Notes C API
You’re looking at the sizeof a (char *), not at the string it points to.
Subject: RE: Use DSAPI with Notes C API
Can you suggest any way to get the thread id of the HTTP stack. We are maintaining a log in DSAPI and the issue is that when multiple requests are hitting the server from web, the logs are intermingled and not clear to which log comment is related to which web client. So we are thinking a way to get the thread id / session id to resolve this issue. We will put session id/ thread id in the logs.