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

List:       kde-devel
Subject:    Re: Annoying problem after upgrading to kde 3
From:       Waldo Bastian <bastian () kde ! org>
Date:       2002-04-03 21:14:59
[Download RAW message or body]

On Wednesday 03 April 2002 11:25 am, Adam Pigg wrote:
> Hi
>     ive been writing a small pragram (available on my website) to teach
> myself qt/kde programming.  All was fine when i was running kde 2, but
> after upgrading to kde 3 (beta 2) and the latest snapshot of gideon i
> have a rather odd problem that doesnt seem to be associated with kde.
> The program compiles without any errors or warnings but crashes on
> startup.  Running it in the debugger shows that the error occurs on a
> line similar to the following:
>     void subject::accept(observer* ob)
>     {
>         myobservers.push_back(ob); <-------------crash here
>     }
>
> the program uses the doc/view design patern, where the doc is the
> subject and the views are the observers.  myobservers is a vector of
> observer pointers, which is standard c++ stl stuff, which is why im
> confised that it would crash after upgrading to kde3b2.
>
> Any advice appreciated

Maybe you have some mmemroy corruption going on elsewhere that minifests 
itself here. You may want to use "valgrind", it is very good for tracking 
down such problems. You can find it on http://devel-home.kde.org/~sewardj

Cheers,
Waldo
-- 
bastian@kde.org  |   SuSE Labs KDE Developer  |  bastian@suse.com


>> 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