Hi All ! !
Ti’s only me again . . .
Firstly, I really write bloated code (*kick me hard*), every time a client wants a new feature I just add a sub routine . . .
Now I sit with programs that are like 460kb big . . I need to like know how can I get more string space (not get error 7 once to often) when I run such a large program.
Example of my array dimensions :-
Code:
‘ In the code I check how much memory is left –set para$() and dimension NUM and FLD accordingly) IF VAL(PARA$(160))>0 THEN NUM = VAL( PARA$(160) ) FLD=VAL(PARA$(161) ELSE Num = 200 FLD=49 END IF DIM Y1$(NUM),Y2$(NUM),Y3$(NUM),Y4(NUM), Y5(NUM), Y6(NUM), Y7(NUM), Y8(NUM), Y9$(NUM), Y9(NUM), Y10$(NUM), Y11$(NUM), Y14(NUM), Y15$(NUM),BO_Y11$(NUM) DIM FLD%(FLD), FLD$(FLD), IFLD$(FLD), DD$(FLD), D$(FLD), PS$(30), IPS(30) DIM PD$(60), NSR(60), PA(60),SR$(60) DIM M$(5), L$(10),BOS(20) DIM B$(20), C(20) DIM BC(NUM), C$(15) DIM A%(100), B%(100) DIM ACC$(200)
1) Does my usage of NUM (In source) really make any difference
2) Does DIM A$(100) take up more space than dim a$$(100): map a$$() * 30
3) How does static and dynamic arrays contribute to memory overhead.
4) What can you use to flush memory to recover space does fre() help?
5) Where can I find a good tutorial that will explain memory overhead ?
Now that’s a lot`ta questions . . .
Any takers . . .
JustBASit www.compubyte.co.za
------------------
BASit
www.witelafrica.net
[B][email protected]
Comment