c++ - c#/wpf OpenMP inside external dll -
i have c++ lib, 'glue' lib in managed c++ , c#/wpf app importing 'glue' lib. works fine till add some
#pragma omp parallel
when compile c++ lib / glue lib , c#/wpf app fine - no warnings/errors. when trie launch c# app crashes - doesnt crashes when executing parallel code - crashes during loading of app - says:
a first chance exception of type 'system.windows.markup.xamlparseexception' occurred in presentationframework.dll
additional information: nie można utworzyć wystąpienia „window1” zdefiniowanego w zestawie „fastnn-speedtest, version=1.0.0.0, culture=neutral, publickeytoken=null”. obiekt docelowy wywołania zgłosił wyjątek. błąd w pliku znaczników „fastnn-speedtest;component/window1.xaml”.
i know it's in polish c# app can't load dll uses openmp code - how can make work?
of course in c++ project switched on "enable openmp"
.net doesn’t care dll does—one using openmp shouldn’t different. have required vcomp*.dll (vcomp100.dll vs2010) in path?
it throwing xamlparseexception
, 100% sure it’s not xaml that’s broken?
Comments
Post a Comment