Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Error Messages that don't make sense

Author
Message
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Sep 2003 11:14
Hi,

I have the following code, and it reports the message "Parameter for MAKE OBJECT PLAIN do not match Object number, width, height"



So I REMmed the Make Object Plain line out, and it still reports exactly the same error message!

I had another routine reporting similar errors. The error didn't go away until I commented out every single line in the routine. Then, I introduced each line, 1 by 1, and the error came back again when I finally introduced the line that originally reported the problem.

I'm running with the AlienWare demo version

BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Sep 2003 11:21
OK...so I move the functions into the main source file, instead of include files. Then it all compiles fine.

Anyone able to tell me what the issue is? It could be any of the following...

Types declared in an include file
functions in include files using globals declared in main source file
functions in include files using functions in other include files
None of the above

the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 4th Sep 2003 14:01
I would bet it is types declaired in an include file.
If the main loop is in the main source file the types in the include file will never be setup until the main loop has finished and the code execution continues down the code.

Or it could be none of the above. Try deleting the project file and letting the ide make a new one.
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Sep 2003 22:22
Now I have my types declared in the main file. As soon as I put a function into an include, it errors out with parameter mismatch errors. I never had this issue with DB Classic, am I missing a subtle difference in the two products?

Login to post a reply

Server time is: 2026-07-23 12:10:22
Your offset time is: 2026-07-23 12:10:22