Sockets issue

okibi okibi at ratedo.com
Thu Jan 17 03:05:14 PST 2008


BCS Wrote:

> okibi wrote:
> 
> > By throwing in some writef's, I've been able to get multiple connections.
> > 
> > I'm getting errors with "shouldn't be able to reach 'insert memory location'"
> 
> If you do this
> 
> int main()
> {
>    while(true) {...}
> }
> 
> and the loop some how ends (break, throw, etc.) then you get some 
> strange stuff happening when execution gets to the end of the main 
> without a return. Make it "void main()" and your fine.
> 
> Just a though, don't know if it is what's happening.
> 
>  > as well as "cannot reference 'insert memory location'" upon handling 
> the data passed. Odd...

My main() functions are "void". The only one that is "int" is run() within the thread that contains the server-side connection.


More information about the Digitalmars-d-learn mailing list