[Lazarus] Passing an array to a function
Darmawan Sugiarto
darmawan_sugiarto at yahoo.com
Tue Jan 20 03:45:52 CET 2009
Can you give more information about your function.
=============INTOSOFT============
ALEXIO CHAOS
Darmawan_Sugiarto at yahoo.com
Yahoo Messager
=================================
--- On Mon, 1/19/09, Dave Coventry <dgcoventry at gmail.com> wrote:
From: Dave Coventry <dgcoventry at gmail.com>
Subject: [Lazarus] Passing an array to a function
To: lazarus at miraclec.com
Date: Monday, January 19, 2009, 6:20 AM
I have a function that I'm trying to pass an array to.
function FieldValueAsString(fsbuffer: array of Byte; fitype,fisize:
integer): string;
Calling the function:
setlength(fsbuffer,recordsize);
FS:=TFileStream.Create(fname, fmshareDenyWrite);
FS.Seek(seekpos,soFromBeginning);
FS.ReadBuffer(fsbuffer,recordsize);
dfstring:= FieldValueAsString(fsbuffer,fitype,fisize);
Generates the error "Project raised exception class SIGSEGV"
_______________________________________________
Lazarus mailing list
Lazarus at lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20090119/08e82d24/attachment-0007.html>
More information about the Lazarus
mailing list