Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. What's is problem? "the inferior stopped because it recieved a signal from operating system"
Forum Updated to NodeBB v4.3 + New Features

What's is problem? "the inferior stopped because it recieved a signal from operating system"

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 10.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hungchuviet
    wrote on last edited by
    #1

    I have 1 class (SmsParser)
    In main() function, I put some code:
    @SmsParser * smsParser = new SmsParser();
    QString smsParsed = smsParser->parseSMS("This is SMS parser.");
    @
    It work OK.
    //Next I put above code into a SLOT named callSMSParser in mainWindow.cpp
    //Next, I place a push button named btn_ParseSMS on MainWindow.ui
    //next:
    @QObject::connect(btn_ParseSMS, SIGNAL(clicked()), kqxsMainWindow, SLOT(callSMSParser()));@
    When I start debug the code above work fine, but when I clicked on btn_ParseSMS push button, this error happened:"the inferior stopped because it recieved a signal from operating system".
    At last, if i change type of varible smsParser (Do not use pointer):
    @SmsParser smsParser;
    QString smsParsed = smsParser.parseSMS("This is SMS parser.");@
    It work ok.
    I don't know why? and how to fix this?
    Help me!
    thanks a lot!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      The message means that the operating system send a signal to the process, asking it to terminate. These signals are a asynchronous communication mechanism of the OS and not the signals you know from Qt. They get raised when the OS sees a reason (like out of memory conditions, etc.). You should investigate which signal was received and under which conditions that is raised.

      In this case you might try to increase the heap space available for your application.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sriky27
        wrote on last edited by
        #3

        Hi,
        Firstly I am assuming you are working on Mobile platform like symbian or Maemo.
        Well try making smsParser a member variable of the mainWindow class and allocate memory in the constructor of the mainWindow.

        @
        MainWindow::MainWindow()
        {
        smsParser = new SmsParser();
        }

        MainWindow::Slot()
        {
        QString smsParsed = smsParser->parseSMS("This is SMS parser.");
        }
        @

        Give it a shot.
        [edit: marked code / chetankjain]

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hungchuviet
          wrote on last edited by
          #4

          Thanks you very much!
          I'll try it.

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #5

            sriky27, enclosed the code with @ tag

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved