Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with UDTs and Strings / PSA
#2
I don't know how to fix this besides using fixed length strings and that is what I would use.   If you need to know the actual length of the data include a length variable in the UDT.        I can tell you a little about what is going on.   A variable length string in a UDT is actually just a pointer.   The actual string data resides elsewhere.     A udt itself MUST be fixed length or the compiler doesn't know how to allocate it.
Reply


Messages In This Thread
RE: Issue with UDTs and Strings / PSA - by ahenry3068 - 07-27-2024, 08:32 AM
RE: Issue with UDTs and Strings / PSA - by luke - 07-27-2024, 11:01 AM
RE: Issue with UDTs and Strings / PSA - by bplus - 07-27-2024, 02:57 PM
RE: Issue with UDTs and Strings / PSA - by luke - 08-09-2024, 01:03 PM
RE: Issue with UDTs and Strings / PSA - by Pete - 08-09-2024, 02:46 PM



Users browsing this thread: 8 Guest(s)