There seem to be a bug in the creation of resident files with the size of characters (.c) in structures.
If you use such structures, the size of .c stays as the compiler setting of ascii / unicode generated code when the resident file was created.
Code: Select all
Structure MyChar
c.c
EndStructure
Code: Select all
Debug SizeOf(MyChar)
In the structure viewer it will show as:
Structure MyChar
c.c
EndStructure
just like the predefined 'Character' structure of PB, but this will show the correct size of the structure.
It's also a problem when you use structures like this:
Code: Select all
Structure MyCharVector
c.c[0]
EndStructure
Only workaround I see at the moment, is to not make files containing such structures into residents, but to include them via XIncludeFile on each compilation.
Might be that .i is also not correctly sized, but I only have 32 bit windows, so I can't check this.