I forgot to mention that CalculatePoints is external function. Jussi
On Sat, Sep 19, 2009 at 00:08, Jussi Lahtinen <jussi.lahti...@gmail.com> 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 > tmpPOINT = New POINT > Read #pPOINTS + (ii * 4), tmpPOINT.x <---- Fails here! > Read #pPOINTS + (ii * 4) + 2, tmpPOINT.y > ... > > POINT class: > > Public x As Short = -1 > Public y As Short > > There is also rather complicated "_compare" function, but I don't > think it matters with this problem. > > > This code worked fine with earlier Gambas 3 revisions. > Does this has anything to do with my error? > * NEW: A Pointer can not be used as a stream directly. You must use the new > Memory instruction for that. > > New feature understandably lacks documentation, so I need help! > > Jussi > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user