On Friday, 18 October 2019 at 09:21:46 UTC, Vino wrote:
On Friday, 18 October 2019 at 09:17:24 UTC, Vino wrote:
On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote:
[...]

App.d

import vibe.vibe;
import avm.test;

void main()
{
        auto settings = new HTTPServerSettings;
        settings.port = 8080;
        settings.bindAddresses = ["127.0.0.1"];
        listenHTTP(settings, &hello);

logInfo("Please open http://127.0.0.1:8080/ in your browser.");
        runApplication();
}

void hello(HTTPServerRequest req, HTTPServerResponse res)
{
    test t = new avmtest();
    res.writeBody(t.getHostname);
}

And now getting the error : Program exited with code -1073741819

Hi,

Maybe port 8080 is blocked, because there is an instance of your application running on the background. Just check by changing the port in the source code.

Kind regards
Andre

Reply via email to