1 Reply Latest reply on Mar 10, 2009 4:55 PM by licoah

    Bus error

    licoah

      int main(int argcs, char** argv){
          float* A;
          float* res;
          res = new float[8];
          memset((void*)res, 0, sizeof(float)*8);
          A = new float[4];
          A[0] = 0.1f;
          A[1] = 0.2f;
          A[2] = 0.3f;
          A[3] = 0.4f;
          A[4] = 0.5f;
          A[5] = 0.6f;
          A[6] = 0.7f;
          A[7] = 0.8f;
          unsigned int dim = 4;
          ::brook::Stream<float2> a(1, &dim);

      }

      error:  Bus-access error

      Can somebody help me