Re: [Gambas-user] Error message from (at least earlier valid) pointer usage.

2009-09-18 Thread Jussi Lahtinen
One more thing... "While Not Eof(hFile)" doesn't work with this case. Eof() never finds end of "file". Almost sleeping already... Jussi On Sat, Sep 19, 2009 at 02:33, Jussi Lahtinen wrote: > OK, now it works! Thanks! > That makes my code more simple than it was, very good! > Only one little d

Re: [Gambas-user] Error message from (at least earlier valid) pointer usage.

2009-09-18 Thread Jussi Lahtinen
OK, now it works! Thanks! That makes my code more simple than it was, very good! Only one little disruptive thing... using "File" is little counter intuitive, but maybe I just don't name it "hFile", maybe instead "hMyData" or like. Must go to sleep... Jussi 2009/9/19 Benoît Minisini : >> This c

Re: [Gambas-user] Error message from (at least earlier valid) pointer usage.

2009-09-18 Thread Benoît Minisini
> This code, gives error message "wanted Stream got Long instead": > > pPOINTS = Alloc(4, 1522) > tmp = CalculatePoints(pPOINTS,matrix.Data) > > > > For ii = 0 To tmp > tmpPOINT = New POINT > Read #pPOINTS + (ii * 4), tmpPOINT.x< Fails here! > Read #pPOINTS + (ii * 4) + 2, tmpPO

Re: [Gambas-user] Error message from (at least earlier valid) pointer usage.

2009-09-18 Thread Jussi Lahtinen
I forgot to mention that CalculatePoints is external function. Jussi On Sat, Sep 19, 2009 at 00:08, Jussi Lahtinen wrote: > This code, gives error message "wanted Stream got Long instead": > > pPOINTS = Alloc(4, 1522) > tmp = CalculatePoints(pPOINTS,matrix.Data) > > > >  For ii = 0 To tmp

[Gambas-user] Error message from (at least earlier valid) pointer usage.

2009-09-18 Thread Jussi Lahtinen
This code, gives error message "wanted Stream got Long instead": pPOINTS = Alloc(4, 1522) tmp = CalculatePoints(pPOINTS,matrix.Data) For ii = 0 To tmp tmpPOINT = New POINT Read #pPOINTS + (ii * 4), tmpPOINT.x< Fails here! Read #pPOINTS + (ii * 4) + 2, tmpPOINT.y ... POINT clas