Linked Lists or Arrays

Just starting out? Need help? Post your questions and find answers here.
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post by Shopro »

Shannara:
I'm using a Structure full of strings in my linked lists, but haven't had any problems yet. How bad is this? Is it a bug that is going to be fixed?

-Shopro
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Ref: viewtopic.php?t=10639&highlight=memory

This bug have not been fixed yet, and have been confirmed. I try to stay away from strings in linked lists as well, though I have ran into this problem too.. ergh.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

Shannara wrote:Ref: viewtopic.php?t=10639&highlight=memory

This bug have not been fixed yet, and have been confirmed. I try to stay away from strings in linked lists as well, though I have ran into this problem too.. ergh.
So your advice is to use structures inside of arrays. And they are safe
with strings?

- np
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

I try not to give advice :twisted: But yeah. Or.... if you have a structure in linked lists that have a few string members, just seperate the structure into two, one for strings, the other for other. And stick the string structure in an array, using the array's index as a Key field in the other structure :) A horrible work around, and slower, but....
Post Reply