Re: [OMPI users] Unexpected Behavior with C++ New Memory Allocation and MPI IO

2013-06-13 Thread Corey Allen
I had to spend a while searching C++ forums until I understood what you meant. Thank you for the "pointer". Just for completeness in case anyone gets this post as a Google result: char *data = new char(25); // pointer to character initialized with 25 char *data = new char[25]; // pointe

Re: [OMPI users] Unexpected Behavior with C++ New Memory Allocation and MPI IO

2013-06-12 Thread Brian Budge
You appear to be using new and delete[] together. Instead you should be using new[] and delete[] and new and delete together. Brian On Wed, Jun 12, 2013 at 4:44 PM, Corey Allen wrote: > I have done a search on this and I haven't found an explanation. I am not a > C/C++ nor MPI expert. I am ge

[OMPI users] Unexpected Behavior with C++ New Memory Allocation and MPI IO

2013-06-12 Thread Corey Allen
I have done a search on this and I haven't found an explanation. I am not a C/C++ nor MPI expert. I am getting a strange error when I use the C++ new keyword to allocate memory and then call a file read on OpenMPI. (Tech detail: 4-core Intel running Ubuntu 64-bit and OpenMPI 1.4.5. Everything is lo