On 11/21/2014 1:04 PM, Lynn McGuire wrote:
> I just figured out that a 31 character common block variable is causing
> my Win32 DLL to corrupt itself for completely unrelated calculations. ...
>
> If I cut the variable name to 30 characters then the corruption goes away.
>
> Any thoughts here? Watcom F77 is suppose to support up to 32 character
> variable names.
...
Don't know why this just came to me and it isn't a solution but a
hypothesis...
Perhaps the compiler uses C null-terminated strings internally for the
names and somebody only assigned 32-character length not accounting for
the null???
I've never looked at the source code so have absolutely no idea where
one would even begin to start to look to see if it's something like that
that might be a nearly trivial fixup...
Are 31- and 32-character variable names outside a COMMON identified with
separate addresses, I presume?
--