Now i copy the reverted rectangle to the clients output, and there is another exception. at last line.

// copy the results in the correct format to the pdesign output Rectangle
memcpy(out.propagation->getBuffer(), pDesignlossValues, sizeof(float) * numberOflossvalues);


Actually, the getBuffer() is defined in the following format and client gives a pointer to this. (but now I am trying to test with the test setup)
virtual const T* getBuffer() const = 0;
virtual T* getBuffer() { return const_cast<T*>(static_cast<const IRaster*>(this)->getBuffer()); }