<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 5 feb 2020 alle ore 12:51 Peter Bauer <<a href="mailto:pebauer68@gmail.com">pebauer68@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><a href="http://gambaswiki.org/wiki/doc/whatisgambas?nh" target="_blank">http://gambaswiki.org/wiki/doc/whatisgambas?nh</a><br><a href="http://gambaswiki.org/wiki/doc/whatisgambas?nh#t4" target="_blank">http://gambaswiki.org/wiki/doc/whatisgambas?nh#t4</a><br><div>Gambas 3.14 output:</div><div><span style="color:rgb(0,0,0);font-family:"Source Code Pro",monospace;font-size:14.6667px;white-space:pre-wrap">MMain.GetUsedMemory.14: #6: Type mismatch: wanted Integer, got String instead
MMain.GetUsedMemory.14 MMain.Main.23 </span><br></div><div><span style="color:rgb(0,0,0);font-family:"Source Code Pro",monospace;font-size:14.6667px;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Source Code Pro",monospace;font-size:14.6667px;white-space:pre-wrap">While I do not fully understand the Type mismatch (got String !?, really ?).</span></div><div><span style="color:rgb(0,0,0);font-family:"Source Code Pro",monospace;font-size:14.6667px;white-space:pre-wrap">-When I replace </span>Cint(aRes[1] with CLong(aRes[1]) it works again.</div></div></blockquote><div><br></div><div>It fails on VmallocTotal that for example in my computer is 34359738367 kB, higher than the limit of an integer variable.<br>String has nothing to do with it and Clong() instead of CInt() works well.<br>It would also works with Val().</div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div></div>