On Tue, 04 Feb 2014 11:04:32 +0100, Sönke Ludwig wrote:

This terminates fine for me on either Windows or Linux:

import vibe.core.net;

void main()
{
	auto udp = listenUDP(0);
	udp.connect("127.0.0.1", 31722);
	udp.send(cast(ubyte[])"Test");
}

Do you have anything in addition to this?

Alright, it terminates for me now. Not sure if it was a change or just me messing up here. However, since the change, if I have runEventLoop() toward the end, it gives me an error about releasing a TCP connection that is not owned. First of all, it's obviously a UDP connection (probably a typo in the source). Secondly, I guess I don't really understand the event loop in a VibeCustomMain application. It is blocking, and I oftentimes have a 'main loop' in my main function. Should I put this loop in a task, start up all of my tasks, and then runEventLoop()?

Thanks for all the help!