no matter what I do, I keep getting a "Could not create a memory mapping of the file" when creating a file pack.
no idea about the reason, any hints?
about the processNextFrame, I'm trying to convert a code from gd2.04 to latest gd palm version.
in the documentation processNextFrame flags can return GDAPP_FRAMETIMEOVERFLOW , however it's not defined anywhere in the palm .h I have. Any ideas? :)
TIA
Kak
1. VFSEdit
Please try and open the source code for VFSEdit, recompile in debug mode and report back here where it crashes. The source code is included in the same folder as VFSEdit.
2. FRAMETIMEOVERFLOW
Unfortunately CGapiTimer is not available on the Palm platform due to low timer granularity, thus this switch is not available. You have to find another way to work with timer updates on the palm platform.
Johan wrote:1. VFSEdit
Please try and open the source code for VFSEdit, recompile in debug mode and report back here where it crashes. The source code is included in the same folder as VFSEdit.
Hi Johan,
it seems that it's a file which has size of 0 bytes,
the CreateFileMapping returns an error and gives the memory mapping error.
Johan wrote:
2. FRAMETIMEOVERFLOW
Unfortunately CGapiTimer is not available on the Palm platform due to low timer granularity, thus this switch is not available. You have to find another way to work with timer updates on the palm platform.
OK, I didn't realize there was no CGapiTimer in Palm :)
Regards,
Kak
We haven't experienced this issue on our computers. Please see if you can fix it up and report back what you changed.
Johan wrote:We haven't experienced this issue on our computers. Please see if you can fix it up and report back what you changed.
From MSDN, "An attempt to map a file with a length of zero in this manner fails with an error code of ERROR_FILE_INVALID. Applications should test for files with a length of zero and reject such files."
I just added an
- Code:
if (cf.GetLength()<=0) return;
after
- Code:
CFile cf(*vfsFat.pStrPath, CFile::modeRead);
however it's not the way it should work, it should store the file regardless having size 0 (for my needs at least), but it was a fast hack to be able to use it.
Great to hear that it's solved!
I keep having some problems with VFS with palm, I've created a packed vfs file, splitted into parts, and included the .rcp file in the project.
once in the program, in this order (debugger tested) I create a CGapiVFS object and call CreateVFS with the resource ID. CreateVFS returns GD_OK
Afterwards I open the file (i.e. ark.dat) with a leading / in it , with a CGapiFileBuffer or CGapiFileStream, and no matter what name I put, the function returns file doesn't not exists.
I've tried some variations (with leanding /, without leanding /, with \\, inside directories, out of directories, ...) and all I get is a file not found 0xc8660190
any clues?
TIA
Kak