Click here to Skip to main content
15,667,014 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am developing C++/CLI Plugin for Third party software which supports only c++.

My C++/CLI plugin is working as interface between this third party software and my already developed c# code.

C++/CLI calls C# GUI API .

My C# code generates form as follows:

if (mTestUI == null)
   mTestUI = new TestUI(mCFDocument, mClientGraphics);

TestUI is inherited from windows form as follows:
public partial class TestUI : Form

when Application.Run(mTestUI) executed both third party exe and generated form get hang.

I am unable to find reason. I can understand third party software gets hang, as control is with my generated form.

But this form is getting hang ?

this same code is working fine with other third party software which supports C# interface for plugin development.

1 solution

it is a thread issue.

Be care to launch your app in a separate thread.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900