Re: [Gambas-user] Crash with Free()

2011-01-13 Thread Demosthenes Koptsis
On Fri, 2011-01-14 at 14:29 +1100, Ian Haywood wrote: > I'm curious to know why you guys are so fascinated by them > Ian For me i just want to describe them for my book about Gambas3, that's all. In this, is including the tricky part of pointers and the correct use of them inside a program. --

Re: [Gambas-user] Crash with Free()

2011-01-13 Thread Doriano Blengino
Ian Haywood ha scritto: > On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis > wrote: > >> :) Pointers are tricky! >> > Aaaa... of course, pointer is not correct to free after "pp += 4". > Though, result shouldn't be signal 11. > It could not be different. > yes, the ability to avoid

Re: [Gambas-user] Crash with Free()

2011-01-13 Thread Ian Haywood
On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis wrote: > :) Pointers are tricky! yes, the ability to avoid pointers is one of the main advantages of higher-level languages like Gambas. I'm curious to know why you guys are so fascinated by them, other than interfacing with C libraries I would

Re: [Gambas-user] Crash with Free()

2011-01-13 Thread Demosthenes Koptsis
:) Pointers are tricky! And may be this subject is difficult for BASIC programmers like me. But in time we can learn their tricks and pay attention to such cases. In my book i simulate and describe such cases based on http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html i do no

Re: [Gambas-user] Crash with Free()

2011-01-13 Thread Jussi Lahtinen
Aaaa... of course, pointer is not correct to free after "pp += 4". Though, result shouldn't be signal 11. Jussi 2011/1/13 Benoît Minisini > > Hi! > > I was adding some test for pointer arithmetic when noticing this. > > GambasTester will pass, but when you close main form, signal 11 will > ris

Re: [Gambas-user] Crash with Free()

2011-01-13 Thread Benoît Minisini
> Hi! > I was adding some test for pointer arithmetic when noticing this. > GambasTester will pass, but when you close main form, signal 11 will rise. > Commenting out Free(pp) from mTest: line 1070, will prevent crash. > > Gambas 3 rev 3452 @ Ubuntu 10.10 64bit > > Jussi You are calling Free(pp

[Gambas-user] Crash with Free()

2011-01-13 Thread Jussi Lahtinen
Hi! I was adding some test for pointer arithmetic when noticing this. GambasTester will pass, but when you close main form, signal 11 will rise. Commenting out Free(pp) from mTest: line 1070, will prevent crash. Gambas 3 rev 3452 @ Ubuntu 10.10 64bit Jussi GambasTester-0.9.18.tar.gz Description

Re: [Gambas-user] Crash!

2011-01-13 Thread Jussi Lahtinen
OK, I managed to isolate this problem! This will crash Gambas 3 rev 3452 @ Ubuntu 10.10 64bit. Public Sub Form_Open() Dim hFile As File Dim sho As Short Dim sStr As String = "" '"abc" Crash only occurs if string is null. hFile = Open "/tmp/test" For Create Write #hFile, 123 As Short Write #hFile

Re: [Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3

2011-01-13 Thread Ron
Yes, would be more clear if you always had both version links displayed, one selected (the displayed one) and one clickable, the other. > i had the same question some time ago. > > But actually later in an email i read that this is for change to other > version of documents. > > so when you are

Re: [Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3

2011-01-13 Thread Demosthenes Koptsis
i had the same question some time ago. But actually later in an email i read that this is for change to other version of documents. so when you are in wiki Gambas3 you see [2.0], this means if you click on the link you go to Gambas2 docs. The oposite when you are in version 2.0 you click [3.0] t

Re: [Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3

2011-01-13 Thread Ricardo Díaz Martín
Hi Ian, At the current time, the "[3.0]" label, its a link to gambas 3.0 docs. When you see [2.0] it's a link to 2.0 docs. Maybe could be changed but it's only a different way to see the info... Regards, Ricardo Díaz 2011/1/13 Ian Roper > I noticed that at the top of the web page on the Gamba

[Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3

2011-01-13 Thread Ian Roper
I noticed that at the top of the web page on the Gambas documentation site that the version 2.n link is identified as ' > [3.0]' and the version 3.n link is identified as ' > lang [2.0] minor thing I know, but confusing for new users. regards, Ian Roper Perth -