We are getting an error code returned from this call of '4'. This value does not seem to be documented anywhere. What is this error?
PUT_DIB_BLOCK@ error
It is a memory allocation error when creating a DIB block for the image.
Ok. PUT_DIB_BLOCK@ is being called in a loop which, in this instance, runs 18 times. One large array is re-used each time for writing the BMPs. The last time we tested this, The first seven BMPs were created sucessfully, the remaining 11 all returning an error of 4. Is there a memory leak in this routine? The resultant sucessful BMPs are 40Mb in size.
Yes it looks like there is a memory leak. I will email a new salflibc.dll for testing within the next few days.