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 / object number max?

Author
Message
Ghost Games
18
Years of Service
User Offline
Joined: 1st Aug 2007
Location:
Posted: 30th May 2015 06:40
hi

long time a go, i think to remember that the max number of objects to use was 256! is it still that after all the updates, and time i had been away from datkbasic pro. i run the version 7,6

thx.
wattywatts
16
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 30th May 2015 07:06
Ghost Games
18
Years of Service
User Offline
Joined: 1st Aug 2007
Location:
Posted: 30th May 2015 07:24
thx mate

but what about .x and .dbp files as objects. was not so precies, i ment for the imported objects.

sorry for that.
wattywatts
16
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 30th May 2015 08:06 Edited at: 30th May 2015 08:09
Shouldn't make a difference if they're created in your code or imported. I don't know if there's an official limit, but in most cases your PC will probably max out before you reach it.

Ghost Games
18
Years of Service
User Offline
Joined: 1st Aug 2007
Location:
Posted: 30th May 2015 08:36
thx mate. really help me planing my project.
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 30th May 2015 19:25
easy way to find out



see what number it crashes or gives an error on

WickedX
16
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 30th May 2015 20:19 Edited at: 30th May 2015 20:29
In the source code all object loading and creation functions call the function ConfirmNewObject in CommonC.cpp. MAXIMUMVALUE is defined as 22000000 in CRuntimeErrors.h.



Too confirm this run this snippet, then change the constant to 22000001 to see what happens.



Quote: "I don't know if there's an official limit, but in most cases your PC will probably max out before you reach it."

Login to post a reply

Server time is: 2025-08-09 02:30:00
Your offset time is: 2025-08-09 02:30:00