[Qt-interest] error

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Fri Feb 5 02:22:56 CET 2010


Hi Moises, 
 
Did you check that the index was valid before using row()?  
 
Tony.
 

-----Original Message-----

Hello guys,

In an attempt to compile my program (development on Linux) in the windows,
I'm having the following problem:

In a list, choose an option and call QSqlRecord: 
     
            record = modeloGrupo->record(index.row());
 
Where modeloGrupo is a QSqlTableModel *modeloGrupo and index.row() is a
QModelIndex index.

The error is: 

= 0 && idx < s" in file
..\..\include/QtCore/../../src/corelib/tools/qvarlengtharray.h, line 107'
style="BACKGROUND-COLOR: #fff">ASSERT: "idx >= 0 && idx < s" in file
..\..\include/QtCore/../../src/corelib/tools/qvarlengtharray.h, line 107 

Invalid parameter passed to C runtime function.



img of error on the desktop: http://yfrog.com/5xerrortup

 
regards,


 

Moises


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100205/080bfc2a/attachment.html 


More information about the Qt-interest-old mailing list