Cannot debug delphi plugin

Hi,

what’s working:

  • I have a wpf-host application and a delphi plugin.
  • I can debug and run my application from VS2013 and I don’t get any exceptions.
  • The complete interface communication is working as expected
  • I can run the application directly (without any debugger) without problems
  • I can attach to the process from delphi and debug my dll

what’s not working:
When I start the application from my delphi project (Start->Parameter->HostApplication), I see that the app starts and directly closes again. There must be an exception before I can even begin debugging.
When I select “start without debugging (ctrl/shift/F9)” I see that the application has crashed.

Do you have any idea what this could be?

Unfortunately this is not a known problem. Can you try to start debugging with “Step into” to check where exactly it crashes? Also, sometimes Delphi can crash if it have problems with file/folder permissions or you try to run it from network drive.