Path: chuka.playstation.co.uk!news From: "Rikki Prince" Newsgroups: scee.yaroze.beginners Subject: Re: Sprites, OTs and dodgy wrappers... Date: Sun, 3 Oct 1999 11:19:31 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 31 Message-ID: <7t7aie$c861@chuka.playstation.co.uk> References: <7su34m$7f82@chuka.playstation.co.uk> <86n1u5jol3.fsf@foo.mel.cybec.com.au> <7t0oqe$2d02@chuka.playstation.co.uk> NNTP-Posting-Host: th-gt143-062.pool.dircon.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 > 3)Similarly, I may have a problem with the PACKET area, as this is being > dynamically allocated, as well. Is it a good idea to be dynamically > allocating this memory, or should I lessen the flexibility of these > functions etc? Just to check, if I've got a pointer inside my struct, and I Well, I've got it working, and it seems it was the PACKET area, though I changed both the allocation of the memory method and what I was passing to the function, so I can't be certain, but I think I was passing the wrong pointer (thisGame.gpuPacket instead of thisGame.gpuPacket[0]). I also changed the memory allocation to: thisGame.gpuPacket[0] = (PACKET *)malloc(sizeof(PACKET)*maxPackets); thisGame.gpuPacket[1] = (PACKET *)malloc(sizeof(PACKET)*maxPackets); And inside the struct: typedef struct { ... PACKET *gpuPacket[2]; ... } rpGAMEINFO; Anyway, I've got that working, so now I can start working on other stuff, such as sound. Thanks Rikki