Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Invalid parameter passed to C runtime function
Forum Updated to NodeBB v4.3 + New Features

Invalid parameter passed to C runtime function

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtcreatorqstringlistruntime error
19 Posts 3 Posters 10.4k 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.
  • L Lasith
    9 Nov 2017, 16:10

    @mrjj Thanx how can I check the current memory usage? Using the task manager?

    M Offline
    M Offline
    mrjj
    Lifetime Qt Champion
    wrote on 9 Nov 2017, 16:11 last edited by
    #10

    @Lasith
    Yes it can give a good hint. Start app and see how much it uses.

    there is also
    https://docs.microsoft.com/en-us/sysinternals/downloads/rammap

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 9 Nov 2017, 16:12 last edited by
      #11

      Does error comes as soon as you start the app or
      does it take some time?

      L 1 Reply Last reply 9 Nov 2017, 16:16
      0
      • M mrjj
        9 Nov 2017, 16:12

        Does error comes as soon as you start the app or
        does it take some time?

        L Offline
        L Offline
        Lasith
        wrote on 9 Nov 2017, 16:16 last edited by Lasith 11 Sept 2017, 16:17
        #12

        @mrjj The error oocurs when I click a button which feeds a set of values to a QStringList through 2 for loops!

        M J 2 Replies Last reply 9 Nov 2017, 16:22
        0
        • L Lasith
          9 Nov 2017, 16:16

          @mrjj The error oocurs when I click a button which feeds a set of values to a QStringList through 2 for loops!

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 9 Nov 2017, 16:22 last edited by
          #13

          @Lasith
          Ok, you might copy a lot around and run out of memory.
          is it 32/64 bit app?
          how much memory do you have?

          L 1 Reply Last reply 9 Nov 2017, 16:24
          0
          • M mrjj
            9 Nov 2017, 16:22

            @Lasith
            Ok, you might copy a lot around and run out of memory.
            is it 32/64 bit app?
            how much memory do you have?

            L Offline
            L Offline
            Lasith
            wrote on 9 Nov 2017, 16:24 last edited by
            #14

            @mrjj I can not check now :( Its in my office PC Now I am home I will notify you tomorrow! :)

            M 1 Reply Last reply 9 Nov 2017, 16:25
            0
            • L Lasith
              9 Nov 2017, 16:24

              @mrjj I can not check now :( Its in my office PC Now I am home I will notify you tomorrow! :)

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 9 Nov 2017, 16:25 last edited by
              #15

              @Lasith
              Ok, if you copy lists, it might be the reason.
              You should show the code.
              Using all mem with strings, takes a lot of strings :)

              1 Reply Last reply
              0
              • L Lasith
                9 Nov 2017, 16:16

                @mrjj The error oocurs when I click a button which feeds a set of values to a QStringList through 2 for loops!

                J Offline
                J Offline
                JonB
                wrote on 9 Nov 2017, 16:31 last edited by
                #16

                @Lasith said in Invalid parameter passed to C runtime function:

                @mrjj The error oocurs when I click a button which feeds a set of values to a QStringList through 2 for loops!

                And you're sure those 2 loops aren't actually unlimited? ;-) Better look at how many iterations they do :) You do have to do really quite a lot of iterations to run out of memory!

                L 1 Reply Last reply 9 Nov 2017, 16:40
                1
                • J JonB
                  9 Nov 2017, 16:31

                  @Lasith said in Invalid parameter passed to C runtime function:

                  @mrjj The error oocurs when I click a button which feeds a set of values to a QStringList through 2 for loops!

                  And you're sure those 2 loops aren't actually unlimited? ;-) Better look at how many iterations they do :) You do have to do really quite a lot of iterations to run out of memory!

                  L Offline
                  L Offline
                  Lasith
                  wrote on 9 Nov 2017, 16:40 last edited by Lasith 11 Sept 2017, 16:40
                  #17

                  @JNBarchan No the upper limits of the conditions is finite! Any way I will check and see! Plus if its an infinite loop the error message is different as I remember!

                  J 1 Reply Last reply 9 Nov 2017, 16:42
                  0
                  • L Lasith
                    9 Nov 2017, 16:40

                    @JNBarchan No the upper limits of the conditions is finite! Any way I will check and see! Plus if its an infinite loop the error message is different as I remember!

                    J Offline
                    J Offline
                    JonB
                    wrote on 9 Nov 2017, 16:42 last edited by JonB 11 Sept 2017, 16:43
                    #18

                    @Lasith said in Invalid parameter passed to C runtime function:

                    @JNBarchan No the upper limits of the conditions is finite!

                    This is good to know. But there are finite numbers and then there are other finite numbers. Numbers like, say, 0x7FFFFFFF (2 billion?) as the limit in each loop (I'm understanding they are nested?) will cause a lot of iterations... ;-)

                    L 1 Reply Last reply 9 Nov 2017, 16:54
                    1
                    • J JonB
                      9 Nov 2017, 16:42

                      @Lasith said in Invalid parameter passed to C runtime function:

                      @JNBarchan No the upper limits of the conditions is finite!

                      This is good to know. But there are finite numbers and then there are other finite numbers. Numbers like, say, 0x7FFFFFFF (2 billion?) as the limit in each loop (I'm understanding they are nested?) will cause a lot of iterations... ;-)

                      L Offline
                      L Offline
                      Lasith
                      wrote on 9 Nov 2017, 16:54 last edited by
                      #19

                      @JNBarchan yeah they are nested for loops!

                      1 Reply Last reply
                      0

                      19/19

                      9 Nov 2017, 16:54

                      • Login

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