Hi everybody,
thanks to the suggestion from Jean-Pierre, Maurice and Frank, after playing around a bit, I figured out how to solve the problem of the resizing of the vectors: basically, I dispose of the copy vectors as soon as they are of no use any longer. With simple cases (where there are only a few calls to the resizing routine) the program works just fine, but look what I get with a "real case" (this is the output of GDB):
Program received signal SIGSEGV, Segmentation fault. Removefrommarklist (Apointer=void) at /home/frank/gpc/gcc-2.95.3/gcc/p/rts/heap.pas:226 226 /home/frank/gpc/gcc-2.95.3/gcc/p/rts/heap.pas: No such file or directory. in /home/frank/gpc/gcc-2.95.3/gcc/p/rts/heap.pas
I don't even know what's going on, can somebody tell me? Is this the kind of problem that Jean-Pierre was referring to?
Thanks a lot
Silvio