OK this one has me stumped. It's kind of hard to describe the problem 
but here goes -

I have some code using format to create some log strings. Specifically 
it creates text output that represents the contents of a dynamic array 
as a matrix -

eg:

|  123.89 |
|   24.6  |

etc.

I use a Format statement similar to this -

  Result := Format('|%*s%*s|', [L, _s, L, ' ']);

Where L is an integer and _s is the text representation of the value.

Elsewhere in the code Setlength is called frequently to set various 
dynamic arrays.

What is happening is that for certain values of L SetLength causes an 
access violation in a subsequent call - not necessarily the next one.

I am totally lost on this one. I think this is something to do with the 
memory management but not sure.


I have tried everything I can think of to isolate the issue but without 
success.

Any ideas?

Paul Lowman

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to