Error while executing batch job.

Dear All,

I get below error while executing batch job, and status will settle to “Status Waiting”.

Error → "Function ‘MakeSureDirectoryPathExists’ in DLL library ‘IMAGEHLP’ has caused an exception."

Below is my piece of code, where i am passing file path (Network Path).

DLL _winApiDLL = new DLL(‘IMAGEHLP’);

DLLFunction MakeSureDirectoryPathExists = new DLLFunction(_winApiDLL, ‘MakeSureDirectoryPathExists’);

;

MakeSureDirectoryPathExists.returns(ExtTypes::DWord);

MakeSureDirectoryPathExists.arg(ExtTypes::String);

return MakeSureDirectoryPathExists.call(_path);–> Error is thrown after executing this line.

Please help me to resolve this issue.

Regards,
Rajendra

Hello Every one,

Above piece of code work very fine in normal execution . But same code does not work in batch process of server 2008 R2.

Not getting how trace the reason for exception. Please help me to sort out this issue.

Thanks in Advance.

Regards,

Rajendra

Hi,

Did you managed to solve this problem?

Regards,
Laze