Brew 3.x simulator File IO problem | developer.brewmp.com Brew 3.x simulator File IO problem | developer.brewmp.com

Developer

Brew 3.x simulator File IO problem

Forums:

I have been developing against the 2.x SDK and am trying to move to 3.x. I first tried to run my existing application in the BREW simulator. It launches, but it seems file IO does not work correctly. I can open the file and get the file info and verify it is correct. But any file functions such as read, write, or seek fail.

I rebuilt all of my code against the latest 3.x SDK (3.1.5 I believe), and it still does the same thing.

Does anyone have any idea what is going on here?

I've had no problems with the file APIs.
Stupid question, but just to make sure, you do realize that IFILE_Read, IFILE_Write, etc. return the number of bytes read, not an error code, right?
If it is in fact returning 0 (error), what's the error code returned by IFILEMGR_GetLastError()?

I've had no problems with the file APIs.
Stupid question, but just to make sure, you do realize that IFILE_Read, IFILE_Write, etc. return the number of bytes read, not an error code, right?
If it is in fact returning 0 (error), what's the error code returned by IFILEMGR_GetLastError()?

I hope that your previous code which was written in 2.x sdk was working properly.
The one basic requirement for the 3.x Simulators is that all files should be in the small case letters.
Please ensure this before going ahead. Also check the File privilege in your mif.

I hope that your previous code which was written in 2.x sdk was working properly.
The one basic requirement for the 3.x Simulators is that all files should be in the small case letters.
Please ensure this before going ahead. Also check the File privilege in your mif.