C1001 internal compiler error: workaround needed
-
Sunday, June 24, 2012 3:05 PM
Hello,
I'm developing a native library in C++ for a Metro app, using Vs12 RC.
I have this method in a ref class in a cpp file:
double myFunc(const Array<double>^ platformData,int start,const int count) { double *stdData = new double[count]; for (int i = 0 ; i < count ; i++) { stdData[i] = platformData[i]; } return nativeFunc(&globalVar, stdData, start, count); }When I compile this, I get C1001 on the "return nativeFunc" line.
The signature of the nativeFunc is:
double nativeFunc(ClassVar *classVar, double * values, int start, int sample)
How can I fix this? Hope my code isn't buggy ;)
Thanks in advance for the help,
-Marco
- Changed Type Steve HorneMicrosoft Employee, Moderator Monday, July 02, 2012 8:48 PM
All Replies
-
Monday, June 25, 2012 1:16 AM
Hi, try to replace "const int count" by "int count" in the signature of "myFunc".
-
Wednesday, June 27, 2012 2:12 AMModerator
I can't reproduce this. Can you send me your project, or a stripped down example that still faults?
first name dot last name at microsoft dot com.


