English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 31 January 2024, 06:09   #1
DrkStarr
Registered User
 
Join Date: Aug 2022
Location: Detroit / USA
Posts: 37
Blitz Basic Window Total

I've been working with Blitz Basic 2 lately. I started a project that has a lot of Windows. I noticed that I can use Windows 0-4, but if I go to 5 it crashes the program.

Is there anyway to increase the total amount of Windows you can use in a program? Or are we locked into those 5?
DrkStarr is offline  
Old 31 January 2024, 09:43   #2
Honitos
Registered User
 
Honitos's Avatar
 
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
You can increase the number of window objects. Open the compiler menu "compiler options".
In the area "object maximums" increase the maximum number of windows.
Honitos is offline  
Old 31 January 2024, 15:10   #3
DrkStarr
Registered User
 
Join Date: Aug 2022
Location: Detroit / USA
Posts: 37
Thanks for the help.

I found Windows under the options and bumped it up to 10. But then still had the same problem. I dug around some more and found that the GadgetList needed to be brought up to 10 also since I use Gadgets in every Window.
DrkStarr is offline  
Old 31 January 2024, 15:18   #4
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,343
If you enable the debugger when you run your code from the Blitz editor, it will catch these issues and tell you that you've exceeded the maximum object count and highlight the code position instead of crashing.
Daedalus is offline  
Old 31 January 2024, 18:32   #5
Honitos
Registered User
 
Honitos's Avatar
 
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
Thanks Daedalus,
Normally this is my very first advise :-)
I do not remember well, but I thought the debugger is enabled by default in BB2 aswell?
Honitos is offline  
Old 31 January 2024, 20:16   #6
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,343
A quick test here suggests it is indeed enabled by default (in SuperTED anyway), but I'm assuming the OP isn't using it or it would have caught the problem.
Daedalus is offline  
Old 01 February 2024, 03:06   #7
DrkStarr
Registered User
 
Join Date: Aug 2022
Location: Detroit / USA
Posts: 37
I installed BB2 off the Ultimate CD, but I used the installer that came with the CD. So when I was looking through my copy of BB2, it looks like you need to load the Debug Module in order to get the debugger to work. But I don't see that software anywhere.

After some poking around, I found that I should be using ubbinstall.lha off aminet.net. Who knew?

I guess if fixes install problems with the Ultimate CD, and the program looks different than what was loaded from the CD installer. This new version of BB2 uses a different palette, and there are a lot more menu options.

And yeah, when you run it the debugger pops up in the background.
DrkStarr is offline  
Old 01 February 2024, 21:25   #8
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,343
Ah yes, the Ultimate CD has a buggy Installer script so you had an incomplete environment. Glad you're sorted now However, there's an updated version of the ultimate CD that you might like to look at. It includes a fixed Installer script, as well as the latest updates to all the various modules and libraries. You can download it here: http://ubb.plus/
Daedalus is offline  
Old 01 February 2024, 22:43   #9
DrkStarr
Registered User
 
Join Date: Aug 2022
Location: Detroit / USA
Posts: 37
Thanks. I'll have to look at ubb.plus. I'm running into Randomize problems now, and I wonder if it has to do with the install? I thought it could be the emulator.
DrkStarr is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with blitz basic 3 Diegs73 Coders. Blitz Basic 30 19 June 2022 13:21
[blitz basic] How much amiga-blitz friendly is this? saimon69 Coders. Blitz Basic 105 21 April 2022 19:45
Blitz Basic 2.1 - Window command JJ__ Coders. Blitz Basic 5 18 February 2021 13:03
Blitz Basic 2 cookertron Coders. Blitz Basic 7 18 January 2021 23:24
Blitz Basic (1) Retro1234 Coders. Blitz Basic 9 18 February 2016 17:54

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07311 seconds with 13 queries