QB4.5 >64K 
Author Message
 QB4.5 >64K

   Just a quick question for a friend. He is programming in QB4.5 and has
   reached a 64k program size limit. Is there a way around this? Modules?
   Linking? Any help appreciated.


--
---

pacifier.com - Vancouver's Public access Internet (360) 693-0325
telnet or dial the above and type "new" at the prompt to register



Sun, 07 Mar 1999 03:00:00 GMT  
 QB4.5 >64K

I was once programming a rather large application and found that I could
get around the 64k problem with some limited success. I think that there is
some kind of command line switch that you can use. you type at the prompt
"qb /AH" or something like that  and it allows you to have larger programs.
You can find out exactly what the switch is by checking the help file. I
say it worked with limited success because weird stuff would happen to my
program. One time the editor gave me the error 'out of stack space' during
the middle of my program and when I returned to edit mode all of the spots
where variable names should have been just had blank spaces or garbage
characters! I just made sure to save a lot and everything worked fine.

Nick Martin



Quote:
>    Just a quick question for a friend. He is programming in QB4.5 and has
>    reached a 64k program size limit. Is there a way around this? Modules?
>    Linking? Any help appreciated.


> --
> ---

> pacifier.com - Vancouver's Public access Internet (360) 693-0325
> telnet or dial the above and type "new" at the prompt to register



Mon, 08 Mar 1999 03:00:00 GMT  
 QB4.5 >64K

Quote:

> I was once programming a rather large application and found that I could
> get around the 64k problem with some limited success. I think that there is
> some kind of command line switch that you can use. you type at the prompt
> "qb /AH" or something like that  and it allows you to have larger programs.

Actually, this is not correct.  The /AH command line option (which stands
for Array Huge) allows you to dimension arrays that will hold more than
64k of data.  Just thought I'd set the record straight.

-Jesse
--
====================================
Very funny Scotty!
Now beam down my clothes!
====================================



Mon, 08 Mar 1999 03:00:00 GMT  
 QB4.5 >64K

Quote:


> > I was once programming a rather large application and found that I could
> > get around the 64k problem with some limited success. I think that there is
> > some kind of command line switch that you can use. you type at the prompt
> > "qb /AH" or something like that  and it allows you to have larger programs.

> Actually, this is not correct.  The /AH command line option (which stands
> for Array Huge) allows you to dimension arrays that will hold more than
> 64k of data.  Just thought I'd set the record straight.

Just to add a bit to what Jesse said.
The /AH option will allow arrays to be larger than 64k, but if one wants the
array to be able to go on past 128k the the array elements must be of a size
that is an even multiple of a power of 2 ie: 2,4,8,16 ... bytes.
It's no problem with straight numeric arrays ie: integer, single, double, etc.
as they meet the above criteria. But if it's a string array or a user defined
type then the string length or the total size of the user type must be an even
power of 2.
It can be a real waste of space if for example you need an array of 33 byte fixed
length strings. In a case like that you have to pad the strings to 64 bytes to
to meet the power of 2 requirement, so you waste 31 bytes for each string.

--


Bangor, Pa. USA



Mon, 08 Mar 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. QB4.0 -> QB4.5

2. List Box with data >> 64K

3. >64k AllocMem in PB/QB?

4. Manipulating >64K with VB

5. memory > 64k

6. Compiling large code modules (>64K)???

7. Source modules >64K?

8. Listbox > 64k

9. > 64K Text Files

10. I need sample code for editing textbuffers >64K in a textbox

11. text Box > 64K

12. VB3.0 need > 64k combo box

 

 
Powered by phpBB® Forum Software