Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A string bug in 1.2.8-s682 (*solved*)
#10
Darkstar Wrote:
boriel Wrote:Okay: The bug seems to be (finally!) fixed. It's been a very tough one :x

Please, download 1.2.8s696 here, test your program and tell me.

Sorry for the late reply, I was busy with my girlfriend.

I kinda knew that this would be a tough one and it's very good to have those
two extra functions to keep an overview of the heap. The fix works OK for
the routine posted above so that is a big relief thank you very much. Break
works OK also. Can you compact the heap? You could do that in QuickBasic.

Thanks,

Darkstar
The heap es automatically defragmented on each free operation, if possible. Compacted means all blocks must be moved down, the free-list updated and compacted and also locate each declared string var (ponter) in memory and update it accordingly. The problem is: this is an expensive (time/space) function for the speccy, must be done dynamically and you will probably end wasting more space compiling that function that the memory you want to free in a 48Kb system. :|
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)