<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi,</span></div><div><br><span></span></div><div><span>1. If you are sure your changes work properly, please say so and I'll push them to the repository;</span></div><div><span>2. Don't bother with GC.Collect, it shouldn't be necessary if the memory management works properly and it's unusably slow to call it that often. However, I do not have an answer for you because I am not aware of anybody having made memory tests on Qyoto. I think you'd best profile your sample to find out what's wrong.<br></span></div><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"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Вова нет
 <vova7890@mail.ru><br> <b><span style="font-weight: bold;">To:</span></b> kde-bindings@kde.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 29, 2012 10:03 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Kde-bindings] C# Qt bindings<br> </font> </div> <br>
Hello, I`m try to using Qt# binding, see what it is, and when I write simple application give some problems:<br><br>1. All Qt functions that use type "long long" cannot use in C#, because it can`t conver long long on C# type. I`m googling and found a similar problem with Ruby. Then I edit source "handlers.cpp" and add this code:<br><br>    { "int*", marshall_intR },<br>    { "int&", marshall_intR },<br>    { "long long", marshall_longlong }, // this conversion<br>    { "long*", marshall_longR },<br><br>...<br>static void marshall_longlong(Marshall *m) {<br>    switch(m->action()) {<br>    case Marshall::FromObject:<br>    {<br>        m->item().s_long = (m->var().s_long);<br>    }<br>    break;<br><br>    case Marshall::ToObject:<br>    {<br>   
     long long ip = (long long)m->item().s_voidp;<br>        m->var().s_long = ip;<br>    }<br>    break;<br><br>    default:<br>        m->unsupported();<br>        break;<br>    }<br>}<br><br><br>and It's going to work.<br><br>2. When resizing the window the memory usage strongly upping, from 15Mb to ~50Mb. I trying to use on resize event gc.collect, for garbage collecting, but it not help. What can be wrong?<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></body></html>