Author Topic: wxWidgets crashes creating external hardware device object  (Read 3232 times)

esto1990

  • Guest
wxWidgets crashes creating external hardware device object
« 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,


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7576
    • My Best Post
Re: wxWidgets crashes creating external hardware device object
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org