Jump to content

Access violation in ntdll.dll - when running as isapi.dll


alfr

Recommended Posts

Hi, 

 

I use a 3rd part tool from TMS Software - called Flexcel for creating excel files. It in general works well.

 

However a part of it is also for creating a pdf-file out of the excel-file. This works well as long as I run the application as an exe-file on my development pc, but when instead run it as an dll on iis, I get an access violation in ntdll.dll.

 

Anybody having any clue what might causing this kind of exception in IIS/ntdll.dll but not as an exe? 

 

Access violation at address 77EADE33 in module 'ntdll.dll'. Write of address 00000014

Link to comment
Share on other sites

Found the solution - so post it here as well if somebody else is getting the same problem.... A special init is necessary if calling the 3rd part from a dll. Simplest is just to call the DllInit before using it and DllShutDown whe done. 

 

procedure CreateReport;
begin
   FlexCelDllInit;
   try
      //Code that uses FlexCel
   finally
      FlexCelDllShutDown;
   end;
end;
Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...