Hi everybody,
I'm almost finished my first PB/DLL 6 project but I have come
across a strange error that I can not figure out. I have an
integer equate %MAX_NODE_SIZE that I set to size 1024. Throughout
the source I dimension fixed length strings using the equate.
Some of the strings are in TYPES and others are in the parameters
to function and sub calls. All my DECLARE statements also use
the equate.
Everything works perfectly until I change the equates value. I
thought I would try increasing the node size to see the result
on performance. When I do this I get an error 481 that reads
"Parameter mismatch with prior declaration". The Help manual
explains this error as "There is a previous declare declaration
with a parameter mismatch."
The error points to an unrelated function that doesn't
even use the equate in the parameter list or the code. If I REM
out the declare for that function then the same error occurs but
at a different function (and so on and so on).
I tried search/replace to update all references to 1024 with
2048 and the same error occurs.
I can't post the source and I know this explanation does not
seem very coherent but I hope someone may have encountered this
senario before.
Any suggestions would be greatly appreciated.
Thanks!
------------------
Paul Squires
[email protected]
I'm almost finished my first PB/DLL 6 project but I have come
across a strange error that I can not figure out. I have an
integer equate %MAX_NODE_SIZE that I set to size 1024. Throughout
the source I dimension fixed length strings using the equate.
Some of the strings are in TYPES and others are in the parameters
to function and sub calls. All my DECLARE statements also use
the equate.
Everything works perfectly until I change the equates value. I
thought I would try increasing the node size to see the result
on performance. When I do this I get an error 481 that reads
"Parameter mismatch with prior declaration". The Help manual
explains this error as "There is a previous declare declaration
with a parameter mismatch."
The error points to an unrelated function that doesn't
even use the equate in the parameter list or the code. If I REM
out the declare for that function then the same error occurs but
at a different function (and so on and so on).
I tried search/replace to update all references to 1024 with
2048 and the same error occurs.
I can't post the source and I know this explanation does not
seem very coherent but I hope someone may have encountered this
senario before.
Any suggestions would be greatly appreciated.
Thanks!
------------------
Paul Squires
[email protected]
Comment