There is a string limit in DB. I'm not quite sure what it is exactly, but I've hit it many times (usually when my code for a project reaches about 30,000-50,000 lines). Your only option is to reduce the number of strings you have in your code, that includes anything in quotes, whether object filenames or variables. Here's what I do to keep the string count under control:
- Use an external text file to load any textual content you will have in your project. This also has the benefit of making language translations easier. Then load the text lines into an array (I use rem lines to keep track of what text is assigned to what array slot). I can provide some sample code for this routine, if desired, but it's pretty simple.
- If you load the same object in more than one location in your code, assign that object string to a variable and only use the variable every time you need the object (example: shipobject$="shipobject.x" ).
- Never use double quotes to null a string. If you do this frequently, create a 'nullc$' variable that uses the double quotes, then use the variable every time you need to null a string.
- Keep as much data as possible in external files, avoid assigning anything in quotes to variables that you can use 'read string 1,variable$' for.