I am developing a system that is based on WPF. the UI need to let user compi and process. There is a function inside,Ability to perform user compilation So I can't control the user if user need to import third party dll I use a Thread to implement this function.
But now there is a problem, if the user calls the window inside the dll, the windows will freezes.
Main
int main()
{
Thread th = new Thread(thread);
th.Start();
}
void thread()
{
LoadLibrary("C:\\123\windows.dll");
StartTest(dll_windows);
}
DLL
public static dll_windows()
{
ShowWindow();
}