17 Aug
2009
17 Aug
'09
6:09 p.m.
Mat-48 wrote:
But when I call these funtions in another thread, it crash inkscape. Is there any required initialization before I call these this function?
Inkscape is not multithread-safe. You cannot call arbitrary functions from different threads.
To open a file by its path, you need to use sp_file_open. However, the argument must be UTF-8 encoded, so you need to use Glib::ustring instead of std::string, and call it like this: sp_file_open(path.data(), NULL);
If you're trying to do something related to D-Bus, consult it with Soren (aka "Glimmer Labs").
Regards, Krzysztof
--
View this message in context: http://www.nabble.com/Question-about-file-opening-function-tp24990307p250115...
Sent from the Inkscape - Dev mailing list archive at Nabble.com.