Calling .Net DLL crashes AppServer agent

Posted by rvkanten on 21-Mar-2014 11:40

OpenEdge 10.2B07

Windows 2008 (R2) Server x86/x64

Running code underneath crashes AppServer agents in the sense that execution is halted and status stays "SENDING".

The weird thing is that at some sites the code runs ok and on other sites it does not and I can't figure out why.

procedure Export external "Assemblies/unmanaged/RssReporting.dll" cdecl:
 
  define input  parameter reportType as character.
  define input  parameter uitvoerFile as character.
  define input  parameter xsdFile as character.
  define input  parameter xmlFile as character.
  define input  parameter rstFile as character.
  define input  parameter masterLayoutDirectory as character.
  define input  parameter styleFile as character.
  define input  parameter loggingDirectory as character.
  define input  parameter configDirectory as character.
  define input  parameter reportUserId as character.
  define return parameter resultBytes as memptr.
   
end.

All Replies

Posted by a.noteboom on 08-May-2014 04:45

I've had similar issues in the past.  I always make a copy of _proapsv.exe to a meaningfull name. That way you can see the by processname to which application the appserver agent belongs.

this was unstable when i accessed .net dll's.   This was solved by also making a copy of _proapsv.config   file

For the prowin32.exe there is also a manifestfile you have to copy.

Posted by Frank Meulblok on 09-May-2014 05:47

This doesn't look like a .NET dll call, but like a call to an unmanaged C dll. Quite a different beast.

Although, if it's really just defining the external procedure (=declaring the DLL entry point) that triggers the session crash, I'd suspect the .dll itself fails to load for some reason or the other. Windows Event log and/or Process Monitor tool may provide more details on why that fails.

This thread is closed