<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span class="tab"> Could you please specify on which OS </span>you get this error?<span class="tab"></span></div><span class="tab"></span><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> "num.ani.cloud@gmail.com" <num.ani.cloud@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> kde-bindings@kde.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday,
August 26, 2013 1:51 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Kde-bindings] [bindings] [Bug 324061] New: QWidget.WinId property in Qyoto throws AccessViolationException<br> </font> </div> <div class="y_msg_container"><br>
<a href="https://bugs.kde.org/show_bug.cgi?id=324061" target="_blank">https://bugs.kde.org/show_bug.cgi?id=324061</a><br><br> Bug ID: 324061<br> Summary: QWidget.WinId property in Qyoto throws<br> AccessViolationException<br> Classification: Unclassified<br> Product: bindings<br> Version: 4.9<br> Platform: unspecified<br> OS: MS Windows<br> Status: UNCONFIRMED<br> Severity: normal<br> Priority: NOR<br> Component: general<br> Assignee: <a ymailto="mailto:kde-bindings@kde.org"
href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a><br> Reporter: <a ymailto="mailto:num.ani.cloud@gmail.com" href="mailto:num.ani.cloud@gmail.com">num.ani.cloud@gmail.com</a><br><br>(I'm Japanese, and I hope you to tolerate poor English.)<br><br>Hi, I'm using Qyoto. I tried to get window handle of instance of my widget<br>class inherited from QWidget, but when I access QWidget.WinId Property it threw<br>AccessViolationException.<br>My program is as follows:<br><br>using QtGui;<br><br>class Program<br>{<br> public static void Main( string[] args )<br> {<br> var app = new QApplication( args );<br> var window = new MyWidget( null );<br> window.Show();<br><br> ulong id = window.WinId.Value; // The exception was thrown from here<br><br>
QApplication.Exec();<br> }<br>}<br><br>class MyWidget : QWidget<br>{<br> public MyWidget( QWidget parent )<br> : base( parent )<br> {<br> }<br>}<br><br>Is this a bug made by Qyoto? Or Is there something mistake in my program?<br><br>Reproducible: Always<br><br>Steps to Reproduce:<br>1. Set up project for using Qyoto.<br>2. Put source code into project and run.<br>Actual Results: <br>The exception thrown from access for window.WinId<br><br>-- <br>You are receiving this mail because:<br>You are the assignee for the bug.<br>_______________________________________________<br>Kde-bindings mailing list<br><a ymailto="mailto:Kde-bindings@kde.org" href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/kde-bindings" target="_blank">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br><br><br></div> </div> </div>
</div></body></html>