First, as I recall, you cannot delete the object (blackbrush) while it is selected into a DC. You need to reverse the order of the last two lines.

Also, as mentioned earlier, I don't see where...