Routine works on PC, crashes on PSP.. Why?
Routine works on PC, crashes on PSP.. Why?
Hi Guys,
I spent a lot of time debugging a routine that runs through files and converts
strings to floats, sorting, indexing, and other things.
The PSP version runs well for a while on some particular files, and crashes
in the same place every time.
The same routine running on my PC with identical array sizes, endian-ness, etc. processes the entire files fine.
I'm stumped as to why a very standard and straight forward operation would
work on one platform and not another.
The only difference is the PC version writes to another RAM buffer, and the PSP writes direct to MS.
Many files do work on the PSP version though, and give expected results.
Would the potential time spent in while loops crash the PSP?
Any other ideas?
Cheers, Art.
I spent a lot of time debugging a routine that runs through files and converts
strings to floats, sorting, indexing, and other things.
The PSP version runs well for a while on some particular files, and crashes
in the same place every time.
The same routine running on my PC with identical array sizes, endian-ness, etc. processes the entire files fine.
I'm stumped as to why a very standard and straight forward operation would
work on one platform and not another.
The only difference is the PC version writes to another RAM buffer, and the PSP writes direct to MS.
Many files do work on the PSP version though, and give expected results.
Would the potential time spent in while loops crash the PSP?
Any other ideas?
Cheers, Art.
If not actually, then potentially.
Re: Routine works on PC, crashes on PSP.. Why?
Yup... the PSP loves to nuke itself if a loop is repeating itself too fast. Mostly becaue of CPU hogging...Art wrote:Would the potential time spent in while loops crash the PSP?
Try to place a sceKernelDelayThread(100); inside your loop somewhere and see if that fixes your problems.
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Well the delay didn't help. It crashes in the same place.
Yes it stops ten seconds or so before powering off.
I don't think alignment is a problem since it's only dealing with an array of bytes
where floats expressed in ascii text are converted to floats expressed as four bytes
(using a few float variables to do the conversions).
Yes it stops ten seconds or so before powering off.
I don't think alignment is a problem since it's only dealing with an array of bytes
where floats expressed in ascii text are converted to floats expressed as four bytes
(using a few float variables to do the conversions).
If not actually, then potentially.
-
- Posts: 203
- Joined: Sat Jul 05, 2008 8:03 am