Subj : Re: structures problem To : borland.public.cpp.borlandcpp From : Viktor Popov Date : Sat Jul 24 2004 07:58 pm Hi, I have fixed the problem with allocating memory and I have changed the mode of reading files.Thefollowing solutions didn't help at all: 1) Pass s to BuildSSE so it can fill it in (no return value). void BuildSSE(FILE *fp,struct SSEList *sse, struct SSEList *s) 2) Don't allocate s. You are returning the address of sse anyway, so that s points to sse. 3) (the best) Just skip 's' totally and use sse after returning. void BuildSSE(FILE *fp,struct SSEList *sse) Use the filled-in sse. If I use void BuildSSE, it doesn't seem that anything is copied into sse. Viktor --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.721 / Virus Database: 477 - Release Date: 16.7.2004 ã. .