Tuesday, June 29, 2010

PBNI and error PBX_E_GET_PBVM_FAILED

The error PBX_E_GET_PBVM_FAILED (code -12) occurs in my program when I was developing PBNI extension for PowerBuilder 9 on my Windows Vista 64bit and MS Visual Studio 2005 executed with administrator privileges and I was logged in as "normal" user.

All paths to my PBD's/PBL's in library list for CreateSession() method of the IPB_VM interface obtained from pbvm90.dll were defined to a substituted disk and they were not found under administrator context. When I updated paths to be correct under admin context, everything works fine.

Same error occurs in the case, when use use Unicode parameters for CreateSession() method of the IPB_VM interface for ANSI version of the method.