locked
C1001 internal compiler error: workaround needed

    General discussion

  • 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

    Sunday, June 24, 2012 3:05 PM

All replies

  • Hi, try to replace "const int count" by "int count" in the signature of "myFunc".

    Monday, June 25, 2012 1:16 AM
  • 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.

    Wednesday, June 27, 2012 2:12 AM
    Moderator