c# - Delphi XE2 DLL crashes when called from Web API running on Azure App Service -


my c# web api project calling native delphi dll using p/invoke.

everything works fine on windows 10 development machine until publish project azure app service web app.

when dll invoked app service , tries create hidden form access violation occurs , website crashes. in example below test form empty delphi vcl form.

// delphi xe2 dll: function testfunc: boolean; stdcall; begin   result := opentestform(nil); end;  function opentestform(aowner: tcomponent): boolean; begin   frmtest := tfrmtest.create(aowner); // access violation here !!!   try     result := true;       frmtest.free;   end; end;  // c#  [dllimport("test.dll", callingconvention = callingconvention.stdcall)] public static extern bool testfunc(); 

c# web api project: .net core rc1 (1.0.0-rc1-final) using .net framework 4.5.1

delphi xe2: 32 bit dll

works fine on windows 10 (dev machine) , on windows server 2012 r2 (azure vm). azure app service running 32 bit process.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -