{"action":"closed","issue":{"url":"https://api.github.com/repos/adamdruppe/arsd/issues/130","repository_url":"https://api.github.com/repos/adamdruppe/arsd","labels_url":"https://api.github.com/repos/adamdruppe/arsd/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/adamdruppe/arsd/issues/130/comments","events_url":"https://api.github.com/repos/adamdruppe/arsd/issues/130/events","html_url":"https://github.com/adamdruppe/arsd/issues/130","id":294478638,"number":130,"title":"error when closing app built with simpledisplay","user":{"login":"ASHIT-AXAR","id":24279964,"avatar_url":"https://avatars0.githubusercontent.com/u/24279964?v=4","gravatar_id":"","url":"https://api.github.com/users/ASHIT-AXAR","html_url":"https://github.com/ASHIT-AXAR","followers_url":"https://api.github.com/users/ASHIT-AXAR/followers","following_url":"https://api.github.com/users/ASHIT-AXAR/following{/other_user}","gists_url":"https://api.github.com/users/ASHIT-AXAR/gists{/gist_id}","starred_url":"https://api.github.com/users/ASHIT-AXAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASHIT-AXAR/subscriptions","organizations_url":"https://api.github.com/users/ASHIT-AXAR/orgs","repos_url":"https://api.github.com/users/ASHIT-AXAR/repos","events_url":"https://api.github.com/users/ASHIT-AXAR/events{/privacy}","received_events_url":"https://api.github.com/users/ASHIT-AXAR/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-02-05T17:33:48Z","updated_at":"2018-02-10T19:02:46Z","closed_at":"2018-02-10T19:02:46Z","author_association":"NONE","body":"\"gui.d\" is the name of myapp file, it's content is \r\n\r\n```d\r\n// dmd example.d simpledisplay.d color.d\r\nimport arsd.simpledisplay;\r\nimport std.conv;\r\n\r\nvoid main() {\r\n\tauto window = new SimpleWindow(Size(500, 500), \"Event example - simpledisplay.d\");\r\n\r\n\tint y = 0;\r\n\r\n\tvoid addLine(string text) {\r\n\t\tauto painter = window.draw();\r\n\t\tauto painter = window.draw();\r\n\r\n\t\tif(y + painter.fontHeight >= window.height) {\r\n\t\t\tpainter.scrollArea(Point(0, 0), window.width,\r\n\t\t\twindow.height, 0, painter.fontHeight);\r\n\t\t\ty -= painter.fontHeight;\r\n\t\t}\r\n\r\n\t\tpainter.outlineColor = Color.blue;\r\n\t\tpainter.fillColor = Color.blue;\r\n\t\tpainter.drawRectangle(Point(0, y), window.width, painter.fontHeight);\r\n\r\n\t\tpainter.outlineColor = Color.white;\r\n\r\n\t\tpainter.drawText(Point(10, y), text);\r\n\r\n\t\ty += painter.fontHeight;\r\n\t}\r\n\r\n\twindow.eventLoop(1000,\r\n\t  () {\r\n\t\taddLine(\"Timer went off!\");\r\n\t  },\r\n\t  (KeyEvent event) {\r\n\t\taddLine(to!string(event));\r\n\t  },\r\n\t  (MouseEvent event) {\r\n\t\taddLine(to!string(event));\r\n\t  },\r\n\t  (dchar ch) {\r\n\t\taddLine(to!string(ch));\r\n\t  }\r\n\t);\r\n}\r\n```\r\n\r\n`dmd gui.d simpledisplay.d color.d -L/subsystem:windows`\r\n\r\nwhen i press close button i get this error\r\nthere is no error when compiling with no \"-L/subsystem:windows\" argument, but in this case a console is shown with gui\r\n\r\n![simpledisplay](https://user-images.githubusercontent.com/24279964/35819597-63d69f9c-0ab8-11e8-97d4-59de81eae908.png)\r\n\r\n\r\n"}}
{"actor":{"display_login":"ASHIT-AXAR"}}