I'm writing a application which need to resize(or renew) a imge buffer's size by custom. So I must adjust
whether my app could provide the enough space to do this.
But in fact, after using whether SetHandleSize() or NewHandle(), I call the MemError() to get the error number, its value is always no changed,
How can I catch the error, or find another way?