[fpc-pascal] Re: Access violation that I do not understand while creating a class instance

2012-01-24 Thread leledumbo
Also you don't need to manually manage the storage, it will shrink and grow automatically as you append / delete it. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Access-violation-that-I-do-not-understand-while-creating-a-class-instance-tp5166208p5281650.html

[fpc-pascal] Re: Access violation that I do not understand while creating a class instance

2012-01-23 Thread ik
On Mon, Jan 23, 2012 at 16:28, ik ido...@gmail.com wrote: Hello, In the following code ( https://github.com/ik5/redit_client.fpc/blob/master/tests/test_parser.lpr#L55), when I point, I have access violation when trying to create TRedisErrorReturnType.Create It does not happen for

Re: [fpc-pascal] Re: Access violation that I do not understand while creating a class instance

2012-01-23 Thread Henry Vermaak
On 23/01/12 14:56, ik wrote: On Mon, Jan 23, 2012 at 16:28, ik ido...@gmail.com mailto:ido...@gmail.com wrote: Hello, In the following code (https://github.com/ik5/redit_client.fpc/blob/master/tests/test_parser.lpr#L55), when I point, I have access violation when trying to

Re: [fpc-pascal] Re: Access violation that I do not understand while creating a class instance

2012-01-23 Thread ik
On Mon, Jan 23, 2012 at 17:10, Henry Vermaak henry.verm...@gmail.comwrote: On 23/01/12 14:56, ik wrote: On Mon, Jan 23, 2012 at 16:28, ik ido...@gmail.com mailto:ido...@gmail.com wrote: Hello, In the following code (https://github.com/ik5/redit_**client.fpc/blob/master/tests/**

Re: [fpc-pascal] Re: Access violation that I do not understand while creating a class instance

2012-01-23 Thread Henry Vermaak
On 23/01/12 15:38, ik wrote: PChar is an array like approach. AnsiString, is a record based pointer. AnsiString also stores the string in an array. It is dynamic, though, so it stores the size and also reference count. It uses more memory, and provide a bit overhead for the same thing. At

Re: [fpc-pascal] Re: Access violation that I do not understand while creating a class instance

2012-01-23 Thread Jürgen Hestermann
ik schrieb: PChar is an array like approach. AnsiString, is a record based pointer. It uses more memory, and provide a bit overhead for the same thing. At least on theory. I would love to learn that it's not the case. AnsiString stores and keeps track of the string length and this has many