[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-windows
Subject: Re: KPixampCache crash
From: Rivo Laks <rivolaks () hot ! ee>
Date: 2007-08-23 13:28:05
Message-ID: 200708231628.05670.rivolaks () hot ! ee
[Download RAW message or body]
Ühel kenal päeval (neljapäev 23 august 2007) kirjutas Christian Ehrlicher:
> > Von: "Jarosław Staniek"
[...]
> > In the patch below I have:
> > 1. Used USE_MMAP everywhere instead of HAVE_MMAP (OK?)
> > 2. Disabled using mmap for Windows (temporarily I suppose)
> > 3. I've added some fixes so even if mmap is enabled on Windows, the cache
> > now
> > will not crash.
>
> That's fine - altough it's currently only crashed on windows, it can not
> work on other platforms too as QFile::handle() can be everything but the
> correct handle needed for mmap(). It's just luck that it works on other
> platforms.
I don't understand - Qt docs say that QFile::handle() can be used with C
library functions. Is Windows mmap() different somehow?
Also, I checked and ksycoca (kdelibs/kdecore/sycoca/ksycoca.cpp) uses mmap in
almost exactly the same way as I am (only difference is that sycoca uses
read-only mode, I use read-write). Does sycoca work fine on windows?
Rivo
_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic