Does Managed C++ forces multithreading? 
Author Message
 Does Managed C++ forces multithreading?

I have an EXE project setup as single threaded and with managed C++
extension on.  This EXE project is linked with a few other libraries
that is also setup as single threaded but with managed C++ extension
turned off.  When try to create the EXE, I get an error message during
linking about incompatibility between libc.lib and libcpmt.lib.

Why is libcpmt being used?  All the libraries that I'm linking with is
set as single threaded, so why is it using libcpmt.lib instead of
libcp.lib?  Does managed C++ forces the project to becomes
multithreaded even though I set it to single threaded?



Wed, 27 Apr 2005 11:31:17 GMT  
 Does Managed C++ forces multithreading?
John,

Quote:
> I have an EXE project setup as single threaded and with managed C++
> extension on.  This EXE project is linked with a few other libraries
> that is also setup as single threaded but with managed C++ extension
> turned off.  When try to create the EXE, I get an error message during
> linking about incompatibility between libc.lib and libcpmt.lib.

> Why is libcpmt being used?  All the libraries that I'm linking with is
> set as single threaded, so why is it using libcpmt.lib instead of
> libcp.lib?  Does managed C++ forces the project to becomes
> multithreaded even though I set it to single threaded?

Yes, it does. On Managed C++ projects, the .NET runtime might very well
create additional threads (at the very least, you'll get extra threads from
the memory managed/GC), and that adds to the fact that, at least in theory,
managed threads don't need to map necessarily to OS threads.

--
Tomas Restrepo



Wed, 27 Apr 2005 19:24:34 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. using Managed dlls from Managed C++

2. managed C++ wrapper around unmanaged C++ classes: causing StackOverflow exception

3. Performance of unmanaged C++ in a managed C++ app

4. Redirected - Managed C++, differences from standard C++

5. Fatal Error C1010 in Mixing Managed C++ and Unmanaged C++ Code

6. Inherit unmanaged c++ classes from .Net platform (managed c++ or c#)

7. C# client crashs when calling into Managed C++ which calls unmanaged c++ function

8. managed c++ vs unmanaged c++

9. How to pass a function pointer from Managed C++ to unmanaged c++

10. Managed C++ and Unmanaged C++ and Inheritance

11. Interoperability UnManaged C++, Managed C++, C#

12. Migrate C++ to Managed C++

 

 
Powered by phpBB® Forum Software