Linux

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

bux
Posts: 5
Joined: 2003-11-08 12:46

Linux

Post by bux » 2003-11-08 12:54

Okay, I'm thinking of starting a Linux port of DC++.
I have after a few changes in the code compiled the client code...

So I have started with the public hub thing, and this code generates a segfault.

Code: Select all

 HubManager::getInstance()->addListener(this); 


The class that have that addListener code inherits private HubManagerListener (just like the windows code).

So my question is: Is there some kind of client initialization code I have missed?

EDIT: Anyone?

Twink
Posts: 436
Joined: 2003-04-01 04:31
Location: New Zealand

Post by Twink » 2003-11-08 23:06

did you create a new instance in dcplusplus.cpp?

ie HubManager::newInstance();

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Post by GargoyleMT » 2003-11-08 23:17

It might be helpful to know if the getInstance() or the addListener() is crashing... Does gdb/your debugger shed any more light on it?

ivulfusbar
Posts: 506
Joined: 2003-01-03 12:33

Post by ivulfusbar » 2003-11-09 07:40

you can also check out ddd if you want a more graphical interface to gdb
http://www.gnu.org/software/ddd/
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

bux
Posts: 5
Joined: 2003-11-08 12:46

Post by bux » 2003-11-09 09:39

as usual I forgot one important thing :)
This time I missed startup and shutdown (which were declared in the DCPlusPlus header)
So now I got a bit further.
I really should read the MFC code (I'm a bit "affraid" of MFC...), to maybe learn how the client code really works.


but hey, thanks for the info guys.

bux
Posts: 5
Joined: 2003-11-08 12:46

Post by bux » 2003-11-10 13:35

btw, is there some documentation of DC++ somewhere?
(except from the docs generated by doxygen)

cologic
Programmer
Posts: 337
Joined: 2003-01-06 18:32

Post by cologic » 2003-11-10 15:55

I really should read the MFC code (I'm a bit "affraid" of MFC...), to maybe learn how the client code really works.

Well, it's actually WTL, not MFC.
btw, is there some documentation of DC++ somewhere?
(except from the docs generated by doxygen)

Not to my knowledge.

bux
Posts: 5
Joined: 2003-11-08 12:46

Post by bux » 2003-11-11 12:58

Well, it's actually WTL, not MFC.

Okay, WTL looks very much like MFC (i.e. both looks like crap)

Not to my knowledge.

Ok, thanks anyway

Who is online

Users browsing this forum: Google [Bot] and 0 guests