Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Scott Cartier Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Big Problem!!!! PLEASE HELP Date: Tue, 16 Feb 1999 09:50:57 -0800 Organization: SCEA News Server Lines: 25 Message-ID: <36C9B001.91B95293@vmlabs.com> References: <36C69821.64DD0473@yahoo.com> NNTP-Posting-Host: vmlabs24.vmlabs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en I'm not sure of my C order-of-operations, but you might need to change it to "+1" instead of "+4". Since you're casting it to a u_long pointer, adding 4 actually adds "4 * sizeof(u_long *)" which would be 16 bytes. Since you only want to skip the first four bytes you'd need to change it to a one. Again, I'm not sure if it will do the add before or after the type casting. If it adds first then you're probably correct the way you have it. Scott > I am trying to display a normal sprite in a game but it just locks up > when the program runs. By putting some printf's in i found it locked up > when it reached the following line of code: > > GsGetTimInfo ((u_long *)(PlayerAdd+4),&tim_data3); > > I have looked at this for hours and hours and found nothing wrong, i > have declared everything and set it all up correct but still no luck. > > Please can somebody help me!! > > Thanx!!