Hi, Dear all,
   
    I am compiling the following code at Microsoft .net2003 and get the 
exception error.

#include <petscksp.h>

int main(int argc, char* argv[])
{
    Mat testMatrix;
    MatCreateSeqAIJ(PETSC_COMM_WORLD, 5, 5, 3, 0, &testMatrix);

    return 0;
}

 --------------------------------
First-chance exception at 0x00419b1a in PetscTest.exe: 0xC0000005: 
Access violation reading location 0x00000018.
Unhandled exception at 0x00419b1a in PetscTest.exe: 0xC0000005: Access 
violation reading location 0x00000018.
First-chance exception at 0x00419b1a in PetscTest.exe: 0xC0000005: 
Access violation reading location 0x00000018.
Unhandled exception at 0x00419b1a in PetscTest.exe: 0xC0000005: Access 
violation reading location 0x00000018.

--------------------------------------------------------

The Petsc library is compiled using Cygwin. Is it because that different 
C compiler is used?
Thanks a lot

Xiaoxu


Reply via email to