[Kde-hardware-devel] Re: segmentation fault in tutorial3

Kevin Ottens ervin at kde.org
Mon Mar 21 08:31:39 CET 2011


On Sunday 20 March 2011 18:29:15 Lamarque Vieira Souza wrote:
> Em Sunday 20 March 2011, Joel Bodenmann escreveu:
> > Hi guys,
> > 
> > I saw that the tutorial3 in kdeexamples/solid makes a segmentation fault.
> > I
> > 
> > found out that the problem is in line 49 in the tutorial3.cpp:
> > 		Solid::Device device = list[0];
> > 
> > I think that the problem is that we can't give the object a value?
> > 
> > So you see... I know the problem but i can't fix it.
> > Can anyone help?
> 
> 	This is a bug in Solid or somewhere else. Sure list should have at
> 	least one processor.

Running in a VM? We got that feedback that for some VMs those don't report any 
processor... We can hardly do anything about that apart indeed removing the 
assumption from the tutorial that we'll always get a processor.

Regards.
-- 
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud patron of KDE, http://www.kdab.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20110321/1c3d35f1/attachment.sig 


More information about the Kde-hardware-devel mailing list