Invalid parameter passed to C runtime function
-
@Lasith
Add more memory to the pc.
But how much does the target currently have ?
Did you check the how much app uses etc?Or find out if you are leaking memory and hence it runs dry.
You have to find out what causes it using the debugger.
Step through the code to find out where or in what context the
error comes.You have not shown any code so its not possible to guess at.
-
@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 -
Does error comes as soon as you start the app or
does it take some time? -
@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!
-
@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... ;-)