×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    29

    QFile::seek: IODevice is not open

    Hi,
    I install an application in n810. The installed directory is /usr/bin. I also copy a folder in /usr/bin because the application needs some data from files in the folder. When I start the application in X Terminal, the hint "QFile::seek: IODevice is not open" is showed. I don't what is wrong with it and could someone help me, please, thanks in advance.

  2. #2
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Re: QFile::seek: IODevice is not open

    1) This is not related to S60
    2) Never ever store userdata in /usr/bin
    3) The "hint" very clearly states that the io device was not opened before doing anything with it. There is plenty of example in the Qt docs. You just have to copy & paste. But I guess your file is just not fount and therefore the io device cannot be opened. I further guess that you plan to open a file in the "current" directory but you start your application from another directory and therefore the file is not found.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    29

    Re: QFile::seek: IODevice is not open

    Quote Originally Posted by axeljaeger View Post
    1) This is not related to S60
    2) Never ever store userdata in /usr/bin
    3) The "hint" very clearly states that the io device was not opened before doing anything with it. There is plenty of example in the Qt docs. You just have to copy & paste. But I guess your file is just not fount and therefore the io device cannot be opened. I further guess that you plan to open a file in the "current" directory but you start your application from another directory and therefore the file is not found.
    I am sorry, and I will send my problem in a more proper section. But there seems not have a section for discussing of maemo.
    In PC, the executable is in the same directory with those data files, consequently, those data files have to be placed in /usr/bin because the application is installed in /usr/bin. I can find those data files in /usr/bin after installing the application, but when I run the application the problem "QFile::seek: IODevice is not open" still appears.

  4. #4
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Re: QFile::seek: IODevice is not open

    If you are using Linux on your PC, you should not store userdata in the same directory as the application as well.

    But how do you start your application? Do you use a relative filename? QFile("myfile.txt") does NOT mean open a file in the same directory but in the "working directory".

    Edit: I have no problem if peopple post non S60-related questions here but there are places where you get a lot more attention, for example qtcentre.org or various linux forums.
    Last edited by axeljaeger; 2009-08-19 at 09:55.

Similar Threads

  1. Automatic code signing for open source J2ME Apps?
    By gagravarr in forum Series 40 & S60 Platform Feedback Archive
    Replies: 3
    Last Post: 2008-05-12, 06:09
  2. Open Source Hardware
    By Possum in forum News and Announcements
    Replies: 1
    Last Post: 2007-05-10, 07:40
  3. Replies: 3
    Last Post: 2005-10-12, 05:26
  4. game doesn't open when tried to open it on 7650
    By venugujjeti in forum Mobile Java General
    Replies: 1
    Last Post: 2005-02-15, 11:53
  5. Open various file's...
    By andreas84 in forum Symbian
    Replies: 1
    Last Post: 2003-10-27, 16:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×