for being preciser I can add that some objects of the canvas possess a=20
specific ID that comes set up manually.
The extension must interrogate a DBMS and if in the result of the=20
interrogation an object from the particular ID is content, to this=20
object it comes modified attribute STYLE with data read from the DBMS.
As an example:
1) design a rectangle and set the ID =3D =E2=80=9Crect10=E2=80=9D
2) DBMS comes interrogated and reads a line that contains a foreinkey=20
=E2=80=9Crect10=E2=80=9D and this attributes
style=3Dfill: #ff9955; stroke: #000000; stroke-opacity: 0.98830408;=20
stroke-width: 8; stroke-miterlimit: 4; stroke-dasharray: ninth; stroke-
linejoin: round; stroke-linecap: butt
3) set the object with these attributes by means of the instruction=20
node->setAttributes (=E2=80=9Cstyle=E2=80=9D, ....., true);
The problem is in the fact that, I make to execute the operations of=20
"reading of the DBMS" and of "set attributes" in a secondary thread,=20
and at the instruction =E2=80=9CsetAttributes=E2=80=9D or "sp_repr_set_attr=
" an error=20
of segmentation fault happens and Bryce has said to me that this error=20
is from the multithreading, because Inkscape is ONLY SingleThreading.
You could give a hand to me, is truly imporant.
On Lun, March 19, 2007 23:35, MenTaLguY wrote:
> On Mon, 19 Mar 2007 19:31:12 +0100 (CET), Federico <fedemil@...
>> I would have the necessity to modify the attributes of field STYLE=20
>> an object to regular intervals of time.
>> More in the detail, I would have necessity to write a =C3=A2=E2=82=AC=
>> Inkscape that reads the data of an object (rect, path, star, etc.)=20
>> a DBMS and he applies them to the present object on the screen.
> Could you please clarify the way in which these two requirements are
> related to one another?
Naviga e telefona senza limiti con Tiscali =20
Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom
From: Jasper van de Gronde <th.gronde@hc...> - 2007-03-27 08:23:40
> The problem is in the fact that, I make to execute the operations of
> "reading of the DBMS" and of "set attributes" in a secondary thread,
> and at the instruction “setAttributes” or "sp_repr_set_attr" an error
> of segmentation fault happens and Bryce has said to me that this error
> is from the multithreading, because Inkscape is ONLY SingleThreading.
> You could give a hand to me, is truly imporant.
If I remember correctly Inkscape is indeed very thread unsafe, I would
recommend not using multiple threads. If you feel you have to, then
avoid calling any of the normal Inkscape code in other threads than the
main one, that should avoid most problems.