comparison Core/Images/ImageBuffer.cpp @ 3348:a1cd981a0f9a

more logs
author Alain Mazy <alain@mazy.be>
date Thu, 18 Apr 2019 15:52:25 +0200
parents 4e43e67f8ecf
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3334:af81263c025c 3348:a1cd981a0f9a
64 else 64 else
65 { 65 {
66 buffer_ = malloc(size); 66 buffer_ = malloc(size);
67 if (buffer_ == NULL) 67 if (buffer_ == NULL)
68 { 68 {
69 throw OrthancException(ErrorCode_NotEnoughMemory); 69 throw OrthancException(ErrorCode_NotEnoughMemory,
70 "Failed to allocate an image buffer of size " + boost::lexical_cast<std::string>(width_) + "x" + boost::lexical_cast<std::string>(height_));
70 } 71 }
71 } 72 }
72 73
73 changed_ = false; 74 changed_ = false;
74 } 75 }