View Single Post
Old 04-20-2005, 16:17   #3 (permalink)
Insane Poster
Join Date: May 2002
Age: 35
Posts: 76
Member: 12407
Status: Offline
Thanks Meter: 0
@acid: i want to read a unicode text file. to make sure it is only loaded to ram once i want to check the first 2 bytes of the file (if it is unicode: first word in file is 0xFFFE). i did it like this:
if (iFileHandler != -1 && cFileOutput[0] != 0xFE && cFileOutput[1] != 0xFF) {
// get the file size:
compiles with no problems, but when i test it on the phone it crashes. if i remove "&& cFileOutput[1] != 0xFF" it works. it doesn't seem to like "cFileOutput[1]". i also can't declare another pointer to ram in the function, even if i don't use the pointer the phone crashes. what did i do wrong? sexit code says Data_Abort! at address 0xA128D51C...
thx in advance
  Reply With Quote
Page generated in 0.13256 seconds with 6 queries