Please help me back on the track!

W. Tasin tasin at e-technik.fh-muenchen.de
Sat Feb 26 17:20:05 GMT 2000


Peter Thorstenson wrote:
> 
> Hi!
> 
> I don't know if this is the prober place to post this.
> I'm learning C++ and have been using kdevelop since 2 months.
> My application for KDE 1.X is getting along over my expectations. That means
> good.
> However, five days ago I ran in to a problem that does not let me continue.
> When the proble occured I ran kdevelop 1.0 so I changed it to 1.2beta2
> but with no change.
> To me it seems like a basic problem probably due to lak of knowelage from my
> side.
> Any help is appreciated.
> 
> Problem description:
> A added a new class to my project: "mp3_header". In this class I declare a
> variable "cat" as public. To me this means that any other class should be
> able to set or alter the value of this variable. In this function it should
> be enough to declare it as private I think.
> BUT if I try to alter the value from a menu-slott bu calling "setCat()" as
> follows, the program
> quits directly with error:
> 
> Program received SIGSEGV, Segmentation fault.
> 
> In the prog.h file:
>   #include <mp3_header.h>
> :
> :
>   private:
>   mp3_header *header;
> 
> In the prog.cpp file:
>   //The command I put cleanly in a menu-slot
>   header->setCat();
> 

Hi Peter,

sounds that you have no instance of mp3_header...
means did you make somewhere a:
:
:
header=new mp3_header();
:
:
before calling 
header->setCat();

??

Ciao

Walter, 8 degrees celcius

-- 
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W. Tasin, FB 04,
FHM-------------------PGP-KeyID:0x7961A645----------:
<Key-Fingerprint: 1610 835F 0080 32F4 6140  6CF7 A7D0 44CD 7961A645>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=index&search=0x7961A645&fingerprint=on>




More information about the KDevelop mailing list