{"action":"created","issue":{"url":"https://api.github.com/repos/wxphp/wxphp/issues/111","labels_url":"https://api.github.com/repos/wxphp/wxphp/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/wxphp/wxphp/issues/111/comments","events_url":"https://api.github.com/repos/wxphp/wxphp/issues/111/events","html_url":"https://github.com/wxphp/wxphp/issues/111","id":119105744,"number":111,"title":"wxColourPickerCtrl->GetColour() method crashes PHP","user":{"login":"raernon","id":16038282,"avatar_url":"https://avatars.githubusercontent.com/u/16038282?v=3","gravatar_id":"","url":"https://api.github.com/users/raernon","html_url":"https://github.com/raernon","followers_url":"https://api.github.com/users/raernon/followers","following_url":"https://api.github.com/users/raernon/following{/other_user}","gists_url":"https://api.github.com/users/raernon/gists{/gist_id}","starred_url":"https://api.github.com/users/raernon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raernon/subscriptions","organizations_url":"https://api.github.com/users/raernon/orgs","repos_url":"https://api.github.com/users/raernon/repos","events_url":"https://api.github.com/users/raernon/events{/privacy}","received_events_url":"https://api.github.com/users/raernon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-26T22:08:06Z","updated_at":"2015-12-04T18:52:04Z","closed_at":null,"body":"The wxColourPickerCtrl->GetColour() method crashes PHP under windows. I've tried both x86 and x64 versions of wxPHP (wxphp-3.0.2.0-php5.4-x86.exe and wxphp-3.0.2.0-php5.5-x64.exe)\r\nI've created a sample code with wxFormBuilder: I've dropped a colourpicker and a button control on a frame, all controls with default properties. The button has an onclick event which try to read the colourpicker actual colour value. When the button pressed, the PHP crashes.\r\n```php\r\n<?php\r\n\r\nclass MyFrame1 extends wxFrame {\r\n\r\n  function __construct( $parent=null ){\r\n    parent::__construct ( $parent, wxID_ANY, wxEmptyString, wxDefaultPosition, new wxSize( 500,300 ), wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );\r\n\r\n    $this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r\n\r\n    $bSizer1 = new wxBoxSizer( wxVERTICAL );\r\n\r\n    $this->m_colourPicker1 = new wxColourPickerCtrl( $this, wxID_ANY, wxBLACK, wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );\r\n    $bSizer1->Add( $this->m_colourPicker1, 0, wxALL, 5 );\r\n\r\n    $this->m_button1 = new wxButton( $this, wxID_ANY, \"MyButton\", wxDefaultPosition, wxDefaultSize, 0 );\r\n    $bSizer1->Add( $this->m_button1, 0, wxALL, 5 );\r\n\r\n\r\n    $this->SetSizer( $bSizer1 );\r\n    $this->Layout();\r\n\r\n    $this->Centre( wxBOTH );\r\n\r\n    // Connect Events\r\n    $this->m_button1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, array($this, \"m_button1_click\") );\r\n  }\r\n\r\n\r\n  function __destruct( ){\r\n  }\r\n\r\n\r\n  // Virtual event handlers, overide them in your derived class\r\n  function m_button1_click( $event ){\r\n    //Edited here\r\n    print_r($this->m_colourPicker1->GetColour());\r\n  }\r\n\r\n}\r\n\r\n$main = new MyFrame1();\r\n$main->Show();\r\nwxEntry();\r\n```"},"comment":{"url":"https://api.github.com/repos/wxphp/wxphp/issues/comments/162049720","html_url":"https://github.com/wxphp/wxphp/issues/111#issuecomment-162049720","issue_url":"https://api.github.com/repos/wxphp/wxphp/issues/111","id":162049720,"user":{"login":"halfer","id":480975,"avatar_url":"https://avatars.githubusercontent.com/u/480975?v=3","gravatar_id":"","url":"https://api.github.com/users/halfer","html_url":"https://github.com/halfer","followers_url":"https://api.github.com/users/halfer/followers","following_url":"https://api.github.com/users/halfer/following{/other_user}","gists_url":"https://api.github.com/users/halfer/gists{/gist_id}","starred_url":"https://api.github.com/users/halfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfer/subscriptions","organizations_url":"https://api.github.com/users/halfer/orgs","repos_url":"https://api.github.com/users/halfer/repos","events_url":"https://api.github.com/users/halfer/events{/privacy}","received_events_url":"https://api.github.com/users/halfer/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T18:52:04Z","updated_at":"2015-12-04T18:52:04Z","body":"@raernon: what is your crash message? Would you take a screenshot?\r\n"}}