Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

TBB w/ C++/CLI and 32 vs 64 bit

digiplant
Beginner
663 Views
Hi, I have a c# application, where I make a call to unmanaged c++ object/functions through a managed c++/cli wrapper. Inside the unmanaged c++ part, I compute several things in parallel using TBB. This application is compiled for both 32 and 64 bit computers, using visual c++ compiler.

The problem is that the program works in 64 bit, but in 32 bit it crashes when it attempts to access the DLL containing the c++/cli, nominally because it "can't find" the DLL, ie it never executes any code inside the DLL. When I build the DLL in either mode, it compiles successfully.
What's going on here? Why does the app work in 64 bit, but crash in 32 bit? If I remove all the TBB parts, it works. Is there something that is preventing this DLL from being properly made?
0 Kudos
1 Reply
Tux__the_Linux_Pengu
663 Views
Hmmm... *scratches head* Maybe you have some old compiler settings for 64-bit that placed the compiled DLL away from the program? You could use Dependency Walker to check the dependencies.
0 Kudos
Reply