I'll have to look into this. All of the type conversions were rewritten. It's likely that many things are broken.<br><br>Thanks,<br>Michael<br><br><div class="gmail_quote">On Fri, Feb 26, 2010 at 9:35 PM, Deepayan Sarkar <span dir="ltr"><<a href="mailto:deepayan.sarkar@gmail.com">deepayan.sarkar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">This used to work before:<br>
<br>
> qfile <- Qt$QFile("/tmp/foo.R")<br>
> stream <- Qt$QTextStream(qfile)<br>
Error in qinvokeStatic(cl, name, ...) :<br>
Unable to disambiguate method QTextStream::QTextStream<br>
<br>
but no longer. A workaround is<br>
<br>
> stream <- Qt$QTextStream()<br>
> stream$setDevice(qfile)<br>
<br>
Similarly,<br>
<br>
> Qt$QPen(Qt$QColor())<br>
Error in qinvokeStatic(cl, name, ...) :<br>
Unable to disambiguate method QPen::QPen<br>
<br>
Any idea what might be going on?<br>
<br>
<br>
Even worse, segfaults with<br>
<br>
> stream$string()<br>
<br>
*** caught segfault ***<br>
address 0x8, cause 'memory not mapped'<br>
<br>
Traceback:<br>
1: .Call(qt_qinvoke, x, method, FALSE, list(...))<br>
2: qinvoke(<environment>, "string", ...)<br>
3: stream$string()<br>
<br>
<br>
and with<br>
<br>
> foo <- "foobar"<br>
> stream <- Qt$QTextStream(foo)<br>
<br>
*** caught segfault ***<br>
address 0x8, cause 'memory not mapped'<br>
<br>
Traceback:<br>
1: .Call(qt_qinvokeStatic, x, method, list(...))<br>
2: qinvokeStatic(cl, name, ...)<br>
3: Qt$QTextStream(foo)<br>
<br>
(But I guess this usage doesn't make sense for us.)<br>
<br>
-Deepayan<br>
_______________________________________________<br>
Qtinterfaces-devel mailing list<br>
<a href="mailto:Qtinterfaces-devel@lists.r-forge.r-project.org">Qtinterfaces-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel</a><br>
</blockquote></div><br>