[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    (forw)  Fwd: [Patch] kreversi aborts with out of memory on Alpha]
From:       "Dr. David Alan Gilbert" <gilbertd () treblig ! org>
Date:       2001-09-29 10:41:17
[Download RAW message or body]

Hi,
  Mario Weilguni asked me to forward my patch to kde-devel@kde.org since
he no longer has time to maintain his packages; can someone check this and
apply it please.

It is filed as kde bug #33083

Thanks,

Dave

Subject: [Patch] kreversi aborts with out of memory on Alpha
Date: Fri, 28 Sep 2001 21:38:58 +0100
From: "Dr. David Alan Gilbert" <gilbertd@treblig.org>
To: mweilguni@kde.org
Cc: submit@bugs.kde.org

Package: kreversi
Version: 2.2.0-final

Hi,
  On Alpha kreversi has for a few weeks aborted with out of memory on Alpha
(Linux/Debian).

  I beleive the problem is cured by the following patch; it is caused by
loadChips using _size and _zoom in one of the functions it calls but they
are not initialised until just after.

Dave


--- board.cpp.predag	Fri Sep 28 21:34:33 2001
+++ board.cpp	Fri Sep 28 21:34:47 2001
@@ -76,12 +76,13 @@
   for(int i = 0; i < CHIP_MAX; i++)
     chip[i] = 0;

+  _size = 32;
+  _zoom = 100;
+
   loadChips("chips.xpm");

   nopaint = FALSE;
   human = Score::BLACK;
-  _size = 32;
-  _zoom = 100;
   setStrength(4);

   connect(this, SIGNAL(signalFieldClicked(int, int)),

----- End forwarded message -----
 ---------------- Have a happy GNU millennium! ----------------------   
/ Dr. David Alan Gilbert    | Running GNU/Linux on Alpha,68K| Happy  \ 
\ gro.gilbert @ treblig.org | MIPS,x86,ARM, SPARC and HP-PA | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic