Re: Breaking the 10-limit : Problems/Questions for Windows build

Annick et Jean-Philippe <[email protected]>
Newsgroups gmane.games.torcs.devel
Message-ID <[email protected]>
Hi, Mart, and all.

Question to all developpers at the bottom ...

> linuxModInfo is a variant of linuxModInfoDir, which is used when creating the 
> list of available robots (so you can select the robots you want to race 
> against). So I think the robot priority can be used to place your own robot 
> higher in the list such that it is easier to select it. I don't know if it is 
> actually used.

Actually, it only loads one module (contrary to linuxModInfoDir).
It is not currently called anywhere in Torcs.

>> About the calloc check (does it return 0 ?), I did not change anything,
>> but I'm open to any suggestion.
> 
> If calloc returns 0, then both the RAM memory and the swap memory (if 
> available) is full. It usually causes X (in Linux) to be very slow. So Torcs 
> isn't playable at all. So the memory of Torcs can better be used to kill the 
> program what causes the memory leak (if that doesn't kill itself), in my opinion.

Not sure to understand ... So, what do you think to be the best solution ?
1) do not check c/malloc at all (p = calloc(...); p->...) ?
2) check it, printf a message on the console (if any), and then exit(1); ?
3) same a 2, but don't exit(1) : return error code from the current function if 
applicable ?
4) any better suggestion ?

Thanks all in advance !

Cheers,

Jean-Philippe.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.