Path: chuka.playstation.co.uk!news From: Developer Support Newsgroups: scee.yaroze.programming.libraries Subject: Re: VSyncCallback Date: Thu, 03 Jul 1997 11:43:40 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 41 Message-ID: <33BB825C.20E2@interactive.sony.com> References: <33BB7448.19E8E81D@cryogen.com> NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Alain Malek wrote: > > Hello, > > I tried to use the VSyncCallback function. > But I couldn't share variables between the callback > routine and the main program. > The UserGuide book says "information can be held > in common with the normal program via external variables." > But how ? > > Here is a piece of code which represents what I've done. > > static int a,b,c; > > static void callback() > { > a = b+c; // just an example... > } > > static void InitCB() { > > VSyncCallback(callback); > > } > > void main(int argc, char **argv) > { > InitCB(); > ... > } > > The code didn't crash, but the variables where not > modified by the callback function. > > Alain I'm sorry to tell you this, but it doesn't work. We'll have to look into it, see if it can be fixed. Stuart