Visit Gigasoft's Web Site
 ProEssentials v9 Help

Painting

Scope

Pego, Pesgo, Pe3do, Pepso, Pepco

Type

Boolean/Int32

Default

FALSE

.NET

PeSpecial.Painting

Ocx|Vcl

Painting

DLL

PEP_bPAINTING

 

Purpose

This property is rarely needed and shows whether the object is currently building an image. This property is normally not needed. However, in certain multi-threaded scenarios, you may need to read this property before calling PEreinitialize, PEresetimage (or PEactions = 0) and other PE functions that may cause an image to be built. If this property reads back TRUE, then go into an infinite loop until this property reads FALSE. Once FALSE it is safe to call the functions described above. If you are experiencing stability problems and know you are having a multi-threaded problem. Try using this property as described.

 

Ideally, it's best to only use extra threads to gather data as needed and place into buffers. Then, have only the primary thread transfer data and update the chart's image as needed. This will eliminate the problem without needing the use of the Painting property and represents the most efficient solution.

 

Setting

Description

TRUE

Images is being built.

FALSE

Image is not being built.

 

Comments

PeSpecial.Painting members of Pego.PeSpecial, Pesgo.PeSpecial, Pe3do.PeSpecial, Pepso.PeSpecial, Pepco.PeSpecial