On Sun, Jun 8, 2008 at 10:56 PM, Vincent Torri <[EMAIL PROTECTED]> wrote:
> On Sun, 8 Jun 2008, Nuno Lucas wrote:
>> On Sun, Jun 8, 2008 at 8:37 AM, Vincent Torri <[EMAIL PROTECTED]> wrote:
>> [...]
>>>
>>> CreateFileMapping returns the error 6 "The handle is invalid." If I use
>>
>> The problem is most probably in the get_osfhandle() function.
>> Use the Win32 CreateFile() function instead of fopen() to get the file
>> handle.
>
> actually, I can't. As I *have to* simulate mmap, i just have the file
> descriptor of the file, its size, and other parameters. So I can't use
> CreateFile.

My intention was for you to test if the problem was
CreateFileMapping() or get_osfhandle().
If the latter, then it's a bug in cegcc, if the former something else
is happening.

You could also test using the mingw32ce version, as it's
get_osfhandle() implementation should be much simpler (cegcc needs a
lot more magic involving file handles).


Regards,
~Nuno Lucas


>> I never had any problem with CreateFileMapping() in WinCE, but never
>> used get_osfhandle() for this kind of things (had problems with it in
>> the Win9x days and never used it again).
>
> As I said in my previous mail, there is maybe a problem with windows ce <
> 5.0
>
> Vincent Torri

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to