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

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:

C#
if (mTestUI == null)
 {
   mTestUI = new TestUI(mCFDocument, mClientGraphics);
   Application.Run(mTestUI);
 }


TestUI is inherited from windows form as follows:
C#
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.
Posted

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