Re: [fpc-pascal] dynamic array and new/dispose

2011-02-03 Thread Jonas Maebe
On 02 Feb 2011, at 17:26, Amit Bueno wrote: > Seems that I found a workaround. > When calling the NewSubChunk in the following syntax: > SubChunks[NewSubChunk]^.read(fl); /// raise an exception. > > While > MyIndex := NewSubChunk; > SubChunks[MyIndex]^.read(fl); /// raise an exception. > >

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-03 Thread Jonas Maebe
On 02 Feb 2011, at 14:28, Jonas Maebe wrote: On 02 Feb 2011, at 14:10, Amit Bueno wrote: Have you got the prof.rar? No. I've just looked at the posts held for moderation and your mail is over 5MB. That is way too large to send to a mailing list. I just saw the new message in the moderat

RE: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Amit Bueno
ansen Sent: Wednesday, February 02, 2011 8:44 PM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] dynamic array and new/dispose Den 02-02-2011 17:26, Amit Bueno skrev: Snipped And you say it was on iOS? On ARM I suppose? What sort of compiler version and options do yo

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Jeppe Johansen
Den 02-02-2011 17:26, Amit Bueno skrev: Snipped And you say it was on iOS? On ARM I suppose? What sort of compiler version and options do you use? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinf

RE: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Amit Bueno
could say why, I don't know why… Amit From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of ik Sent: Wednesday, February 02, 2011 5:48 PM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] dynamic array and new/dispose I have

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread ik
gt; >>>>> --- >>>>> Amit >>>>> >>>>> On Wed, Feb 2, 2011 at 3:34 PM, Amit Bueno wrote: >>>>> >>>>>> Attached is the shrinked prof.rar file (481kb). >>>>>> You can download it as well from:

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Amit Bueno
rote: >>>> >>>>> Attached is the shrinked prof.rar file (481kb). >>>>> You can download it as well from: >>>>> http://bueno.co.il/files/prof.rar >>>>> >>>>> >>>>> --- >>>>> Amit >>

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread ik
;>>> Attached is the shrinked prof.rar file (481kb). >>>> You can download it as well from: >>>> http://bueno.co.il/files/prof.rar >>>> >>>> >>>> --- >>>> Amit >>>> >>>> -Original Mes

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Amit Bueno
ttached is the shrinked prof.rar file (481kb). >>> You can download it as well from: >>> http://bueno.co.il/files/prof.rar >>> >>> >>> --- >>> Amit >>> >>> -Original Message- >>> From: fpc-pascal-boun...@lists.f

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread ik
s.freepascal.org] On Behalf Of Jonas Maebe >> Sent: Wednesday, February 02, 2011 3:28 PM >> To: FPC-Pascal users discussions >> Subject: Re: [fpc-pascal] dynamic array and new/dispose >> >> >> On 02 Feb 2011, at 14:10, Amit Bueno wrote: >> >> > Have you go

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Amit Bueno
s.freepascal.org > [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Jonas Maebe > Sent: Wednesday, February 02, 2011 3:28 PM > To: FPC-Pascal users discussions > Subject: Re: [fpc-pascal] dynamic array and new/dispose > > > On 02 Feb 2011, at 14:10, Amit Bueno wrote:

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Jonas Maebe
On 02 Feb 2011, at 14:10, Amit Bueno wrote: Have you got the prof.rar? No. I've just looked at the posts held for moderation and your mail is over 5MB. That is way too large to send to a mailing list. First of all, make sure to only include source code, not compiled units, programs or r

RE: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Amit Bueno
Have you got the prof.rar? Amit From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of ik Sent: Wednesday, February 02, 2011 11:29 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] dynamic array and new/dispose On Wed

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread ik
s.freepascal.org] On Behalf Of Jonas Maebe > Sent: Wednesday, February 02, 2011 11:17 AM > To: FPC-Pascal users discussions > Subject: Re: [fpc-pascal] dynamic array and new/dispose > > > On 02 Feb 2011, at 09:20, Amit Bueno wrote: > > > // creating and reading more data

RE: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Amit Bueno
Message- From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Jonas Maebe Sent: Wednesday, February 02, 2011 11:17 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] dynamic array and new/dispose On 02 Feb 2011, at 09:20, Amit

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Jonas Maebe
On 02 Feb 2011, at 09:20, Amit Bueno wrote: // creating and reading more data SubChunks[NewSubChunk]^.read(Fl); // NewSubChunk function Function Chunk.NewSubchunk: integer; begin setlength(SubChunks, High(SubChunks)+2); New(subchunks[High(SubChunks)], create); SubChunks[High(SubChunks)]^

RE: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread Amit Bueno
: Re: [fpc-pascal] dynamic array and new/dispose On Wed, Feb 2, 2011 at 10:20, Amit Bueno wrote: I am writing an application on iMac, and having problem dynamically creating objects and reading them into an array: // I got the following object: PChunk = ^Chunk; Chun

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-02 Thread ik
On Wed, Feb 2, 2011 at 10:20, Amit Bueno wrote: > I am writing an application on iMac, and having problem dynamically > creating objects and reading them into an array: > > > > // I got the following object: > > PChunk = ^Chunk; > > Chunk = Object > > SubChunks: array of P