News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

wxWidgets crashes creating external hardware device object

Started by esto1990, June 10, 2015, 03:41:39 PM

Previous topic - Next topic

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]