cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

licoah
Journeyman III

Bus error

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

0 Likes
1 Reply
licoah
Journeyman III

sorry

I found the error

0 Likes