Mail Archives: djgpp/2001/03/15/09:41:12
> Sorry, but that description is just too imprecise for anyone likely to
> be able to help you. Please minimize your code down to the smallest
> you can up with that still shows the problem, and send it, along with
> as precise an error description as you can get: crash dumps, error
> messages, whatever: send it.
>
> Just try to keep in mind that none of us is clairvoyant...
I know you aren't clairvoyant. I was trying not to post a hundred lines of
code. Anyway, it's all fairly academic since a friend of mine fired several
suggestions at me, one of which hit the target: I was allocating memory for
the linkedlist_t structure, which is a pointer to record_t, but I wasn't
allocating memory for record_t, and ergo it died a horrible death. Why it
worked previously without error is anyones guess.
However, slightly off topic, when compiled under VC6 the line containing
record->sortkey = ((rand()) % 1000000) - 500000;
only produces numbers under 0. Anyway, that line is just for testing so I'm
not too bothered really.
Thanks for responding promptly.
--
Stay Lucky, Graham "Mournblade" Reeds,
ICQ: 30514803
http://homepage.dtn.ntl.com/grahamr
- Raw text -