netpanzer-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [netPanzer-Devel] lobby_connection


From: hankin
Subject: Re: [netPanzer-Devel] lobby_connection
Date: Mon, 17 Nov 2003 09:12:54 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

what times are you on irc?
when I link with efence and run it in dedicated server mode I noticed that it tried to start the gui bits...


#2  0x401295f3 in EF_Abortv (
pattern=0x40129960 "Allocating 0 bytes, probably a bug.", args=0xbffff314)
   at print.c:137
#3  0x40129629 in EF_Abort (
   pattern=0x40129960 "Allocating 0 bytes, probably a bug.") at print.c:146
#4  0x40128701 in memalign (alignment=4, userSize=0) at efence.c:473
#5  0x40128fd6 in malloc (size=0) at efence.c:871
#6  0x40128e89 in realloc (oldBuffer=0x0, newSize=0) at efence.c:826
#7  0x0805504f in PackedSurface::pack(Surface const&) (this=0x40df8534,
   address@hidden) at src/Lib/2D/PackedSurface.cpp:182
#8 0x080668d8 in cButton::createCenterText(iXY, int, char const*, char const*, void (*)()) (this=0x40df852c, pos={x = 320, y = 160}, xSize=160,
   nName=0x8100108 "Refresh", nToolTip=0x80f71f2 "", nLeftClickFunc=0)
   at src/Lib/View/cButton.cpp:100
#9 0x0806b22a in View::addButtonCenterText(iXY const&, int const&, char const*, char const*, void (*)()) (this=0x40de4ce8, address@hidden, address@hidden,
   name=0x8100108 "Refresh", toolTip=0x80f71f2 "",
   leftClickFunc=0x80a2320 <IRCLobbyView::buttonRefresh()>)
   at src/Lib/Types/iXY.hpp:39
#10 0x080a0d2f in IRCLobbyView (this=0x40de4ce8) at src/Lib/Types/iXY.hpp:33
#11 0x080dd347 in DedicatedGameManager::launchNetPanzerGame() (this=0x40632ffc


Matze Braun wrote:

On Sun, 16 Nov 2003, hankin wrote:

the lobby_connection was static before, but it has been changed.

when a dedicated game starts it shouldn't need IRCLobbyView, only lobby_connection(IRCLobby). The IRCLobbyView starting when there's no gui is causing some malloc problems, I want to change it back to static, or does anyone have better suggestions?
What is the exact problem here? Where are these malloc problems? (maybe join irc and try if you can meet me, so that we can discuss it directly...)

In general I don't like this static style at all. Code in this way typically is not reusable and highly coupled which makes maintenance hard. I know that currently in netpanzer there are lots of "bad" places. But we should try not to even add more bad code...

Greetings,
        Matze


_______________________________________________
netPanzer-Devel mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/netpanzer-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]