thanks marcel
i commented a line which calls a function that takes structure pointer as an argument.
but after commenting(ie. not calling this function) the program works fine and this program has nothing to do with Qt.
do u think the error exists only in the function which i am calling or still there is a possibility of error in Qt (because some of the Qt function reports about the errors.)
Bookmarks