Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxWidgets crashes creating external hardware device object
(1/1)
esto1990:
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,
stahta01:
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.
Navigation
[0] Message Index
Go to full version