Board index » delphi » TList Sort in XP...

TList Sort in XP...

OK, so I am fairly sure that it is a code error, but I figure I will through
this out here anyway.  In an app I am building I create a TList and then
fill it with objects that are are attached to treenodes in TreeView.  These
objects have a z-order drawing level that has to be maintained.  After
populating the TList I call the Sort method to arrange them by this given
z-order.  When I run it through the compiler everything works fine.  When I
run it stand alone in XP I get an access violation on the sort call.
However, I am not getting the same error in earlier Win versions.  What do
you think?

Thank You,

NUZZI

 

Re:TList Sort in XP...


You should be able to trace into the source-code of the sort call with the
de{*word*81}.  (Depending on the version or how you set up Delphi, you may
need to add the VCL source-code unit into the project.)

In article <u87ma9jv925...@corp.supernews.com>, "Nuzzi"

Quote
<nu...@megahits.com.nospam> wrote:
> OK, so I am fairly sure that it is a code error, but I figure I will through
> this out here anyway.  In an app I am building I create a TList and then
> fill it with objects that are are attached to treenodes in TreeView.  These
> objects have a z-order drawing level that has to be maintained.  After
> populating the TList I call the Sort method to arrange them by this given
> z-order.  When I run it through the compiler everything works fine.  When I
> run it stand alone in XP I get an access violation on the sort call.
> However, I am not getting the same error in earlier Win versions.  What do
> you think?

> Thank You,

> NUZZI

Other Threads