declaration of two dimensional arrays(character

actually this is in reference to the thread that i have already created about declaring two dimensional arrays
I have configured the the model to Xdata
and the change that i have made is only of declaring a character array of a size more than 100
Yes i am going to use it to store strings
but that is later isnt it .There is a problem in the declaration itself

Parents
  • It really would be better to continue with the already existing thread. Still, we are here now...

    xdata is not a memory model. Do you mean that you are using the large memory model?

    The fact that you get problems as the array gets bigger rather hints that variables are not being stored where you think they should be. You can use the simulator Memory Window to check.

    You can put strings in a two dimensional array. However, it is generally better to form an array of pointers to strings. The difference is a subtle one and may result in some confusion.

    Can you post some of your code - let us see that array definition and how you are accessing it.

Reply
  • It really would be better to continue with the already existing thread. Still, we are here now...

    xdata is not a memory model. Do you mean that you are using the large memory model?

    The fact that you get problems as the array gets bigger rather hints that variables are not being stored where you think they should be. You can use the simulator Memory Window to check.

    You can put strings in a two dimensional array. However, it is generally better to form an array of pointers to strings. The difference is a subtle one and may result in some confusion.

    Can you post some of your code - let us see that array definition and how you are accessing it.

Children
More questions in this forum