Path: chuka.playstation.co.uk!news From: "Peter Armstrong" Newsgroups: scee.yaroze.freetalk.english Subject: Re: loading an exe and using Exec() Date: Mon, 16 Apr 2001 15:17:20 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 45 Message-ID: <9bev5u$30s5@www.netyaroze-europe.com> References: <9bbp7u$t451@www.netyaroze-europe.com> <9bep1d$30s3@www.netyaroze-europe.com> <9bepko$30s4@www.netyaroze-europe.com> NNTP-Posting-Host: host213-122-40-14.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 "Matt Verran" wrote in message news:9bepko$30s4@www.netyaroze-europe.com... > > > I would have said CdReadExec overwriting data is the problem. The yaroze > > boot exe loads in at 80090000, as long as your own program is located > higher > > in memory it won't cause any problems. Most commercial game exe's load in > > below 80090000, over yaroze system data, and may well be overwriting data > > and functions still associated with your program. For example CdReadExec > > could load an exe over the position of CdReadSync, and as this is the next > > call in your program it would fail. You say you're getting timeouts rather > > than lock-ups though, which is what I've been getting, so perhaps there's > > another reason. > > Yeah, you seem to be having the same problems I am, do you get the following > error from CdReadSync: > > CD_sync:(CdlSync) Sync=NoIntr, Ready=DataReady No, I just get lock-ups, I've got timeouts like that with CDSearchfile a few times before. I've tried a demo of Toshinden2 which loads high in memory and this ran okay. I tried Doom which loads low and CdReadExec locked up each time. Probably the greatest chance of success is to avoid any libps calls that might come in conflict with executing the program. You could try loading the exe as data into your program, transfer it to its start address yourself then jump to it from within your own program it rather than call Exec. Can't say this will work, but it sounds good in theory. :) I'll give it a try and see what happens. Peter