Re: [Inkscape-devel] Help about Animate Document in Inkscape
Hello Mental, for being preciser I can add that some objects of the canvas possess a specific ID that comes set up manually. The extension must interrogate a DBMS and if in the result of the interrogation an object from the particular ID is content, to this object it comes modified attribute STYLE with data read from the DBMS.
As an example: 1) design a rectangle and set the ID = “rect10” 2) DBMS comes interrogated and reads a line that contains a foreinkey “rect10” and this attributes style=fill: #ff9955; stroke: #000000; stroke-opacity: 0.98830408; 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 node->setAttributes (“style”, ....., true); or sp_repr_set_attr(nodes[i],"style", ...);
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.
Thanks
Federico
On Lun, March 19, 2007 23:35, MenTaLguY wrote:
On Mon, 19 Mar 2007 19:31:12 +0100 (CET), Federico <fedemil@...1700...
it>
wrote:
I would have the necessity to modify the attributes of field STYLE
of
an object to regular intervals of time.
More in the detail, I would have necessity to write a “extensionâ
€
of Inkscape that reads the data of an object (rect, path, star, etc.)
from
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?
-mental
Naviga e telefona senza limiti con Tiscali Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom
Federico wrote:
... 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.
participants (2)
-
Federico
-
Jasper van de Gronde