CS Ver: 1.4.0
Graphics Card: GeForce GT 220
So... I tried building CS with Visual Basic using MS-Word.. and I was having some issues.. jk..
(Update: The issue is no longer a problem for me after I decided not to allow bg color for the text to change until after the sequence of lines had displayed.)
An assertion is thrown when I change the background color in g2d->Write(...,...,...,bgColor).
Assertion Failed: *(Cookie Type*)((uint8*)P + nOld) == endCookie
Message: Memory block has wrong cookie (probably corrupted by an overflow)
The error occurs only when in the process of writing varying lengths of text consecutively i.e. one line after the other of different lengths of text. Once all of the lines are on screen, there is no issue.
Essentially what I am doing is waiting for a mouse-over on the text and then highlight the text that the mouse is over by changing the background color.
Additionally, further testing yielded that as long as the text color did not include any alpha, the problem did not occur. For example, this works g2d->write(....fgColor, g2d->FindRGB(100, 100, 100, 0));, but this does NOT: g2d->write(....fgColor, g2d->FindRGB(100, 100, 100, 100));
Note: 'Write' is called every frame.