Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: esto1990 on June 10, 2015, 03:41:39 pm

Title: wxWidgets crashes creating external hardware device object
Post by: esto1990 on June 10, 2015, 03:41:39 pm
Hello,

I have created a simple project (wxWidgets project -> wxWidgets 3.0.x -> wxSmith GUI builder & Frame Based App type).

I have added a simple button to my brand new GUI and tried to create a USRP object (with usage of UHD C++ API),
with following code (in ...Main.cpp):

void MY_PROJECTFrame::OnButton2Click(wxCommandEvent& event)
{
        uhd::usrp::multi_usrp::sptr usrp = uhd::usrp::multi_usrp::make(std::string("serial=F5D845")); // default creation routine, works fine in console app
}

GUI builds well, but after hitting the button it crashes returning:

Process terminated with status 255

Any ideas why i cant create this object?
Could it be related to console output? (normally, calling uhd::usrp::multi_usrp::sptr usrp = uhd::usrp::multi_usrp::make(std::string("serial=F5D845")); produces large console output with full description).

Best,

Title: Re: wxWidgets crashes creating external hardware device object
Post by: stahta01 on June 10, 2015, 04:02:42 pm
I suggest posting a full re-build log.
And, in the future posting in the user sub-forums will be much more likely to get a answer to your posts.
I would also have wxSmith in the post title for wxSmith questions.

Tim S.