StartDrawing()-StopDrawing() sequence
Posted: Mon Jul 25, 2005 12:42 pm
				
				I have this program (SQ4² -> www.sq4.net) that i am rewritting.
I have a UI-thread and a realtime-thread (Soundcard->AsioDriver)
Everything is working fine EXCEPT (in some rare cases) when there is a WM_Paint.
If I debug I sometimes get : "Stopdrawing() must be called before StartDrawing()..."
I am sure the realtime-thread doesn't call any UI-repaint procedures. It only postmessage_() to do the UI-update.
The result of this error (when not debugging) is a memory read error on procedurereturn from the realtime thread. (It must have something to do with the stack, i think)
Anybody any idea what could cause this behaviour?
thanks alot,
eric
			I have a UI-thread and a realtime-thread (Soundcard->AsioDriver)
Everything is working fine EXCEPT (in some rare cases) when there is a WM_Paint.
If I debug I sometimes get : "Stopdrawing() must be called before StartDrawing()..."
I am sure the realtime-thread doesn't call any UI-repaint procedures. It only postmessage_() to do the UI-update.
The result of this error (when not debugging) is a memory read error on procedurereturn from the realtime thread. (It must have something to do with the stack, i think)
Anybody any idea what could cause this behaviour?
thanks alot,
eric