I just have a small test file and the LDAP server refuses to load my DLL
plugin when I make a call to instantiate a new xerces DOMParser object in
the init routiine. Dont know what is the problem.

I have all the right includes in my makefile and there is no linking problem
of any kind. I even looked into the final DLL and it does have references to
the DOMparser.

BUT   ** LDAP **  simpily refuses to start with my plugin.
LDAP loads my plugin fine if I comment out the DOMParser line below.

Any Help Appreciated.
Thnaks In advance.
patkam

/*--------------------------------------------------------------------------
--------------------------*/
#include "E:\Netscape\Server4\plugins\slapd\slapi\include\slapi-plugin.h"
#include <parsers/DOMParser.hpp>

__declspec(dllexport)
int init_function( Slapi_PBlock *pb )
{
  slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, SLAPI_PLUGIN_VERSION_02);
  Slapi_PluginDesc mypdesc = { "test-plugin", "xyz.com", "0.5", "sample
post-operation plugin" };
  slapi_pblock_set( pb, SLAPI_PLUGIN_DESCRIPTION, (void *)&mypdesc );
  slapi_pblock_set( pb, SLAPI_PLUGIN_POST_ADD_FN, (void *) postopAdd );
  slapi_log_error( SLAPI_LOG_PLUGIN, "init_function", "Plug-in successfully
registered.\n" );

    // Runs fine if the following line is commented
  DOMParser *parser = new DOMParser;    <--- cause OF PROBLEM.

  return 0;
}

void postopAdd( Slapi_PBlock *pb ) {}




Reply via email to