Hi,I have developed an application which uses notes C APIs to open a database and read it, the password is provided by another module which handles the password event generated using EMRegister [EXTMGR_ADDINS] and reads the password from a file and supplies to it. If the password provided from the file is incorrect, notes crashes with a scary black console popping up and saying “PANIC: OSVBlockAddr: Bad VBlock…”.
i would help if you could provide some details - like platform, notes version…
what happens if you disable this extmgr? or use it on client to supply password?
maybe extmgr addin has been compiled with wrong settings (struct member alignment not set to 1 for example) or you’re doing something wrong when forwarding password…
I am trying to run on windows platform, and the interesting thing is that this extension manager dll works fine if i give correct password, it crashes only if i give wrong password. Somewhere i read that it goes in a recursive loop that if the password is incorrect, it agains calls the corresponding functino in extension manager dll and again incorrect password is supplied and it keeps going so on…I am also thinking to use KFMSECSwitchtoID for passing the password, is there any drawback for using that function.
you can use recursion ids along with registering ext-handler, but i don’t think this panic is caused by a deadlock (in your case recursion ids would only help if you are calling functions within EM_GETPASSWORD that require authentification).
I am also thinking to use KFMSECSwitchtoID for passing the
password, is there any drawback for using that function.
one problem that you might run into: in some cases password is asked for, although it has been supplied by SECKFMSwitchToID…
you could post relevant code snippets here (or send me if you like)…