{"action":"created","comment":{"url":"https://api.github.com/repos/jmattheis/AntWars/pulls/comments/59086673","id":59086673,"diff_hunk":"@@ -86,12 +85,17 @@ partial class GamePanel : Form {\n \n         private void timer_GameTick_Tick(object sender, EventArgs e) {\n             game.nextTick();\n-            try {\n-                this.Invoke((MethodInvoker) delegate {\n-                    calcGameStatistics();\n-                    print();\n-                });\n-            } catch (System.Exception) { } // passiert halt, da es in einem anderen thread ausgeführt wird und nicht mitbekommt das die form geschlossen wird.\n+\n+            // cloning, the print method get invoked in an other thread, therefore the BoardObject-Array could be change till that.\n+            BoardObject[] objects = game.Board.BoardObjects.get().Clone() as BoardObject[];","path":"AntWars/GamePanel.cs","position":28,"original_position":28,"commit_id":"d7bc8039cf81fd430626f0cb1b6901fe44ec6ad2","original_commit_id":"d7bc8039cf81fd430626f0cb1b6901fe44ec6ad2","user":{"login":"jmattheis","id":14895212,"avatar_url":"https://avatars.githubusercontent.com/u/14895212?v=3","gravatar_id":"","url":"https://api.github.com/users/jmattheis","html_url":"https://github.com/jmattheis","followers_url":"https://api.github.com/users/jmattheis/followers","following_url":"https://api.github.com/users/jmattheis/following{/other_user}","gists_url":"https://api.github.com/users/jmattheis/gists{/gist_id}","starred_url":"https://api.github.com/users/jmattheis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmattheis/subscriptions","organizations_url":"https://api.github.com/users/jmattheis/orgs","repos_url":"https://api.github.com/users/jmattheis/repos","events_url":"https://api.github.com/users/jmattheis/events{/privacy}","received_events_url":"https://api.github.com/users/jmattheis/received_events","type":"User","site_admin":false},"body":"@nicolasries Das sollte den Fehler mit dem ``BoardObject`` was ``null`` war verhinden","created_at":"2016-04-08T20:44:38Z","updated_at":"2016-04-08T20:44:38Z","html_url":"https://github.com/jmattheis/AntWars/pull/139#discussion_r59086673","pull_request_url":"https://api.github.com/repos/jmattheis/AntWars/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/jmattheis/AntWars/pulls/comments/59086673"},"html":{"href":"https://github.com/jmattheis/AntWars/pull/139#discussion_r59086673"},"pull_request":{"href":"https://api.github.com/repos/jmattheis/AntWars/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/jmattheis/AntWars/pulls/139","id":65177046,"html_url":"https://github.com/jmattheis/AntWars/pull/139","diff_url":"https://github.com/jmattheis/AntWars/pull/139.diff","patch_url":"https://github.com/jmattheis/AntWars/pull/139.patch","issue_url":"https://api.github.com/repos/jmattheis/AntWars/issues/139","number":139,"state":"open","locked":false,"title":"Bugfix/performance !!NO MERGE YET!!","user":{"login":"jmattheis","id":14895212,"avatar_url":"https://avatars.githubusercontent.com/u/14895212?v=3","gravatar_id":"","url":"https://api.github.com/users/jmattheis","html_url":"https://github.com/jmattheis","followers_url":"https://api.github.com/users/jmattheis/followers","following_url":"https://api.github.com/users/jmattheis/following{/other_user}","gists_url":"https://api.github.com/users/jmattheis/gists{/gist_id}","starred_url":"https://api.github.com/users/jmattheis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmattheis/subscriptions","organizations_url":"https://api.github.com/users/jmattheis/orgs","repos_url":"https://api.github.com/users/jmattheis/repos","events_url":"https://api.github.com/users/jmattheis/events{/privacy}","received_events_url":"https://api.github.com/users/jmattheis/received_events","type":"User","site_admin":false},"body":"Will hier mal einwenig Diskutieren (:\r\n![img_20160404_184244](https://cloud.githubusercontent.com/assets/14895212/14255656/5cfb948c-fa95-11e5-9377-cbe15e56184f.jpg)\r\n\r\nMeine Idee war ist nur 1/4 der Koordinaten zu Berechnen und dann die anderen davon abzuleiten, was haltet ihr davon? Ich kann nicht genau sagen ob das alles funktioniert, das das nicht so einfach ist an alles zu denken, also mal drüberschauen.\r\n\r\nwie in #46 hier auch ein Screenshot vom Profiler\r\n![yipii](https://cloud.githubusercontent.com/assets/14895212/14255732/c23c6a4c-fa95-11e5-9a49-84e7f0e5525f.png)\r\n\r\n\r\n","created_at":"2016-04-04T16:51:08Z","updated_at":"2016-04-08T20:44:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"beaf3ba341c1986369a9f8b615e5c5d8e898fd1c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jmattheis/AntWars/pulls/139/commits","review_comments_url":"https://api.github.com/repos/jmattheis/AntWars/pulls/139/comments","review_comment_url":"https://api.github.com/repos/jmattheis/AntWars/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jmattheis/AntWars/issues/139/comments","statuses_url":"https://api.github.com/repos/jmattheis/AntWars/statuses/d7bc8039cf81fd430626f0cb1b6901fe44ec6ad2","head":{"label":"jmattheis:bugfix/performance","ref":"bugfix/performance","sha":"d7bc8039cf81fd430626f0cb1b6901fe44ec6ad2","user":{"login":"jmattheis","id":14895212,"avatar_url":"https://avatars.githubusercontent.com/u/14895212?v=3","gravatar_id":"","url":"https://api.github.com/users/jmattheis","html_url":"https://github.com/jmattheis","followers_url":"https://api.github.com/users/jmattheis/followers","following_url":"https://api.github.com/users/jmattheis/following{/other_user}","gists_url":"https://api.github.com/users/jmattheis/gists{/gist_id}","starred_url":"https://api.github.com/users/jmattheis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmattheis/subscriptions","organizations_url":"https://api.github.com/users/jmattheis/orgs","repos_url":"https://api.github.com/users/jmattheis/repos","events_url":"https://api.github.com/users/jmattheis/events{/privacy}","received_events_url":"https://api.github.com/users/jmattheis/received_events","type":"User","site_admin":false},"repo":{"id":45385950,"name":"AntWars","full_name":"jmattheis/AntWars","owner":{"login":"jmattheis","id":14895212,"avatar_url":"https://avatars.githubusercontent.com/u/14895212?v=3","gravatar_id":"","url":"https://api.github.com/users/jmattheis","html_url":"https://github.com/jmattheis","followers_url":"https://api.github.com/users/jmattheis/followers","following_url":"https://api.github.com/users/jmattheis/following{/other_user}","gists_url":"https://api.github.com/users/jmattheis/gists{/gist_id}","starred_url":"https://api.github.com/users/jmattheis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmattheis/subscriptions","organizations_url":"https://api.github.com/users/jmattheis/orgs","repos_url":"https://api.github.com/users/jmattheis/repos","events_url":"https://api.github.com/users/jmattheis/events{/privacy}","received_events_url":"https://api.github.com/users/jmattheis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmattheis/AntWars","description":"","fork":false,"url":"https://api.github.com/repos/jmattheis/AntWars","forks_url":"https://api.github.com/repos/jmattheis/AntWars/forks","keys_url":"https://api.github.com/repos/jmattheis/AntWars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmattheis/AntWars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmattheis/AntWars/teams","hooks_url":"https://api.github.com/repos/jmattheis/AntWars/hooks","issue_events_url":"https://api.github.com/repos/jmattheis/AntWars/issues/events{/number}","events_url":"https://api.github.com/repos/jmattheis/AntWars/events","assignees_url":"https://api.github.com/repos/jmattheis/AntWars/assignees{/user}","branches_url":"https://api.github.com/repos/jmattheis/AntWars/branches{/branch}","tags_url":"https://api.github.com/repos/jmattheis/AntWars/tags","blobs_url":"https://api.github.com/repos/jmattheis/AntWars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmattheis/AntWars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmattheis/AntWars/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmattheis/AntWars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmattheis/AntWars/statuses/{sha}","languages_url":"https://api.github.com/repos/jmattheis/AntWars/languages","stargazers_url":"https://api.github.com/repos/jmattheis/AntWars/stargazers","contributors_url":"https://api.github.com/repos/jmattheis/AntWars/contributors","subscribers_url":"https://api.github.com/repos/jmattheis/AntWars/subscribers","subscription_url":"https://api.github.com/repos/jmattheis/AntWars/subscription","commits_url":"https://api.github.com/repos/jmattheis/AntWars/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmattheis/AntWars/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmattheis/AntWars/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmattheis/AntWars/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmattheis/AntWars/contents/{+path}","compare_url":"https://api.github.com/repos/jmattheis/AntWars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmattheis/AntWars/merges","archive_url":"https://api.github.com/repos/jmattheis/AntWars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmattheis/AntWars/downloads","issues_url":"https://api.github.com/repos/jmattheis/AntWars/issues{/number}","pulls_url":"https://api.github.com/repos/jmattheis/AntWars/pulls{/number}","milestones_url":"https://api.github.com/repos/jmattheis/AntWars/milestones{/number}","notifications_url":"https://api.github.com/repos/jmattheis/AntWars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmattheis/AntWars/labels{/name}","releases_url":"https://api.github.com/repos/jmattheis/AntWars/releases{/id}","deployments_url":"https://api.github.com/repos/jmattheis/AntWars/deployments","created_at":"2015-11-02T09:52:36Z","updated_at":"2016-01-11T12:50:10Z","pushed_at":"2016-04-08T20:42:04Z","git_url":"git://github.com/jmattheis/AntWars.git","ssh_url":"git@github.com:jmattheis/AntWars.git","clone_url":"https://github.com/jmattheis/AntWars.git","svn_url":"https://github.com/jmattheis/AntWars","homepage":null,"size":2992,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"base":{"label":"jmattheis:master","ref":"master","sha":"8991c2a5a2b9636d028f2de438b8ef8a4b11bfba","user":{"login":"jmattheis","id":14895212,"avatar_url":"https://avatars.githubusercontent.com/u/14895212?v=3","gravatar_id":"","url":"https://api.github.com/users/jmattheis","html_url":"https://github.com/jmattheis","followers_url":"https://api.github.com/users/jmattheis/followers","following_url":"https://api.github.com/users/jmattheis/following{/other_user}","gists_url":"https://api.github.com/users/jmattheis/gists{/gist_id}","starred_url":"https://api.github.com/users/jmattheis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmattheis/subscriptions","organizations_url":"https://api.github.com/users/jmattheis/orgs","repos_url":"https://api.github.com/users/jmattheis/repos","events_url":"https://api.github.com/users/jmattheis/events{/privacy}","received_events_url":"https://api.github.com/users/jmattheis/received_events","type":"User","site_admin":false},"repo":{"id":45385950,"name":"AntWars","full_name":"jmattheis/AntWars","owner":{"login":"jmattheis","id":14895212,"avatar_url":"https://avatars.githubusercontent.com/u/14895212?v=3","gravatar_id":"","url":"https://api.github.com/users/jmattheis","html_url":"https://github.com/jmattheis","followers_url":"https://api.github.com/users/jmattheis/followers","following_url":"https://api.github.com/users/jmattheis/following{/other_user}","gists_url":"https://api.github.com/users/jmattheis/gists{/gist_id}","starred_url":"https://api.github.com/users/jmattheis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmattheis/subscriptions","organizations_url":"https://api.github.com/users/jmattheis/orgs","repos_url":"https://api.github.com/users/jmattheis/repos","events_url":"https://api.github.com/users/jmattheis/events{/privacy}","received_events_url":"https://api.github.com/users/jmattheis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmattheis/AntWars","description":"","fork":false,"url":"https://api.github.com/repos/jmattheis/AntWars","forks_url":"https://api.github.com/repos/jmattheis/AntWars/forks","keys_url":"https://api.github.com/repos/jmattheis/AntWars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmattheis/AntWars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmattheis/AntWars/teams","hooks_url":"https://api.github.com/repos/jmattheis/AntWars/hooks","issue_events_url":"https://api.github.com/repos/jmattheis/AntWars/issues/events{/number}","events_url":"https://api.github.com/repos/jmattheis/AntWars/events","assignees_url":"https://api.github.com/repos/jmattheis/AntWars/assignees{/user}","branches_url":"https://api.github.com/repos/jmattheis/AntWars/branches{/branch}","tags_url":"https://api.github.com/repos/jmattheis/AntWars/tags","blobs_url":"https://api.github.com/repos/jmattheis/AntWars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmattheis/AntWars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmattheis/AntWars/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmattheis/AntWars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmattheis/AntWars/statuses/{sha}","languages_url":"https://api.github.com/repos/jmattheis/AntWars/languages","stargazers_url":"https://api.github.com/repos/jmattheis/AntWars/stargazers","contributors_url":"https://api.github.com/repos/jmattheis/AntWars/contributors","subscribers_url":"https://api.github.com/repos/jmattheis/AntWars/subscribers","subscription_url":"https://api.github.com/repos/jmattheis/AntWars/subscription","commits_url":"https://api.github.com/repos/jmattheis/AntWars/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmattheis/AntWars/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmattheis/AntWars/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmattheis/AntWars/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmattheis/AntWars/contents/{+path}","compare_url":"https://api.github.com/repos/jmattheis/AntWars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmattheis/AntWars/merges","archive_url":"https://api.github.com/repos/jmattheis/AntWars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmattheis/AntWars/downloads","issues_url":"https://api.github.com/repos/jmattheis/AntWars/issues{/number}","pulls_url":"https://api.github.com/repos/jmattheis/AntWars/pulls{/number}","milestones_url":"https://api.github.com/repos/jmattheis/AntWars/milestones{/number}","notifications_url":"https://api.github.com/repos/jmattheis/AntWars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmattheis/AntWars/labels{/name}","releases_url":"https://api.github.com/repos/jmattheis/AntWars/releases{/id}","deployments_url":"https://api.github.com/repos/jmattheis/AntWars/deployments","created_at":"2015-11-02T09:52:36Z","updated_at":"2016-01-11T12:50:10Z","pushed_at":"2016-04-08T20:42:04Z","git_url":"git://github.com/jmattheis/AntWars.git","ssh_url":"git@github.com:jmattheis/AntWars.git","clone_url":"https://github.com/jmattheis/AntWars.git","svn_url":"https://github.com/jmattheis/AntWars","homepage":null,"size":2992,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jmattheis/AntWars/pulls/139"},"html":{"href":"https://github.com/jmattheis/AntWars/pull/139"},"issue":{"href":"https://api.github.com/repos/jmattheis/AntWars/issues/139"},"comments":{"href":"https://api.github.com/repos/jmattheis/AntWars/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/jmattheis/AntWars/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/jmattheis/AntWars/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jmattheis/AntWars/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/jmattheis/AntWars/statuses/d7bc8039cf81fd430626f0cb1b6901fe44ec6ad2"}}}}