Byte8:
When this array was increased to 36 rows one of the problems returned: an unscheduled and unexplainable "reset", the prgm started a new.
Which array?
Anyway, changing array sizes resulting in unexplained behaviour coming and going indicates a high probability of a bug in your code. Does this happen under Linux as well; or is this a Windows-only issue?
I'm not sure why you want to compile under both systems. The (original) Linux version works so I would start writing the Windows version from scratch.