[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 14:04:47
Message-ID: 200708231704.47463.rivolaks () hot ! ee
[Download RAW message or body]

Ühel kenal päeval (neljapäev 23 august 2007) kirjutas Christian Ehrlicher:
> > Von: Rivo Laks
> > 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?
>
> It works, but without mmap support for win32 (e.g. mmap() is called but
> returns -1)

After Jaroslaw commits his patch the KPixmapCache should do the same instead 
of crashing.
It crashed because I didn't set the file pointer back to 0 in case mmap() 
failed and so the cache thought that mmapping is being used and tried to use 
it even when it had actually failed.

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