-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.1.2
-
x86
-
windows_nt
very rarely, ::SetTextColor will assert because m_hDC is NULL.
even though this:
if (m_hDC != NULL) {
VERIFY(::SetTextColor(m_hDC, color) != CLR_INVALID);
}
checks m_hDC against NULL, the value obviously can change between that check
and the SetTextColor call! There are three solutions to this problem:
1. ignore it (probably asking for more problems)
2. remove the VERIFY check since we're occasionally passing NULL DC's to
windows anyway...
3. synchronize the call to setColor in WGraphics.java
(and all other calls like it)
4. re-evaluate or change synchronization of shared DCs.
even though this:
if (m_hDC != NULL) {
VERIFY(::SetTextColor(m_hDC, color) != CLR_INVALID);
}
checks m_hDC against NULL, the value obviously can change between that check
and the SetTextColor call! There are three solutions to this problem:
1. ignore it (probably asking for more problems)
2. remove the VERIFY check since we're occasionally passing NULL DC's to
windows anyway...
3. synchronize the call to setColor in WGraphics.java
(and all other calls like it)
4. re-evaluate or change synchronization of shared DCs.