Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am Developing wpf application,in my application i used creates a number of thread to access a same c++ dll for specific operation i dont know how to do it?

What I have tried:

for refernce i used for loop
for(int i= 0; i<=50;i++)
{

  ImageThread = new Thread(() => LoadingItems(item));
                        ImageThread.Start();

}

//here LoadingItems() -> i used from c++ dll 
//item -> Intptr item;
Posted
Updated 16-Aug-21 20:05pm
v2

1 solution

All .Net managed threads within the same app domain share the same memory heap, no need to do anything extra, unless, of course, you're working with multiple threads from different app domains or processes.
 
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