[prev in list] [next in list] [prev in thread] [next in thread]
List: kde
Subject: Re: I need some help and it's not officially a KDE problem.
From: Heiko Nardmann <h.nardmann () secunet ! de>
Date: 1998-08-28 5:03:56
[Download RAW message or body]
Steven W. Orr wrote:
[...]
>
> The line of code that it's dying on is this:
>
> s->sprintf("\"%s\",\"%s\"\n",
> (a->getNote()) ? a->getNote() : "",
>
> (a->getPrivate()) ? "1" :
> "0");
>
> Since the sprintf (#4) is on the stack, I assume that that means that
> getNote and getPrivate have already run. They are *not* inlines. The
> instanciation of s is:
> QString s;
>
[...]
Maybe you could expand your thing into something like
char *pChar1 = a->getNote();
char *pChar2 = a->getPrivate();
and have a look at them first?
Or how about using some assert() to test for valid values?
Just some general debugging techniques - expand into smaller steps.
Ciao ... Heiko Nardmann
--
Send posts to: kde@lists.netcentral.net
Send all commands to: kde-request@lists.netcentral.net
Put your command in the SUBJECT of the message:
"subscribe", "unsubscribe", "set digest on", or "set digest off"
**********************************************************************
This list is from your pals at NetCentral <http://www.netcentral.net/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic