while loading a cdm i get the following error...( my module
registration itself failed.)
"function free returned invalid pointer"....
the problem is occurring when cdi_register_cdm is failing and it is
trying to call server.nlm|free...
my code is
##################################################################################
LONG CDM_Enter(
LONG OSHandle,
LONG Screen)
{
LONG temp;
LONG instance = 0;
temp = (CDMBASETYPE << 24) | (CDMMEDIATYPE << 16) | CDMHATYPE;
OutputToScreen( screen,"trying to load\n");
if(NPA_Register_CDM_Module(
&CDMModuleHandle,
NovellCDMID,
OSHandle,
0,
(unsigned long)SCSI_Function_Routine,
0,
instance) ==0)
{
OutputToScreen( screen,"registration succeeded\n");
if(CDI_Register_CDM(
&CDMOSHandle,
0,
temp,
RegName,
CDMModuleHandle) == 0)
{
OutputToScreen( screen,"registration of cdm
succeded\n");
return(0);
}
}
return(-1);
}
################################################################################
tried tracing using internal debugger but couldnt ...
any help is highly welcome
thanks
vishnu priya