Click to See Complete Forum and Search --> : Passing vector<double> from Native C++ to Managed C++


caperover2002
January 8th, 2007, 12:45 PM
Hi, All,

I am trying to call a native C++ function from managed C++, which is supposed to return a vector of double. Unfortunately, it is always empty in release mode, although it works under debug mode.

I checked that it should not be empty. Anyone has some clue what is going on?

Thanks,

CR

Zaccheus
January 9th, 2007, 07:18 AM
Are you using p/invoke or mixed native/managed code?

caperover2002
January 9th, 2007, 09:56 AM
yes, I call a Native C++ member function from Managed C++ to get a member variable, a vector of double.