c# 4.0 - 100% CPU-Load when double-buffering is activated with WS_EX_COMPOSITED -
to stop application flickering, tried activate doublebuffering of controls , subcontrols.
to achieve this, added follwoing codesnippet in mainform:
protected override createparams createparams { { createparams cp = base.createparams; cp.exstyle |= 0x02000000; //ws_ex_compos return cp; } } the problem is, windowsxp cpu-load becomes 100% , keeps up. no problem on windows7.
it looks me, same problem in question. there "easy" solution in c#? or asked in different way -> causes behaviour? can find out problem in application.
update: maybe more information folks me. trying showing semi-transparent form ontop of mainform progressbar. "progressbarform" in second thread have progressbar running. on win7 works fine, mentioned above winxp (.net4, activated desktoptheme) there 100% cpu-load after progressbar shown once - acutal payload-function needs longer complete - maybe because of high-cpu-load done progressbar. , should check again? ideas?
btw.: don't think thread problem, when show form in mainthread , don't refresh anything, result (high cpu-load) same...
Comments
Post a Comment