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. Writing application to cd(solved)

Writing application to cd(solved)

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 3.6k 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.
  • K Offline
    K Offline
    kitten
    wrote on last edited by
    #1

    hi to every one
    i wrote a program and it is a bundle, i use macdeployqt correctly,
    but when i write this program to cd it isn't work correctly it gets me error and the program crashed
    !http://img4up.com/up2/05507102411358589206.png(error)!
    should i do sth elsE?
    or should i create a .dmg file?
    bye

    www.kitten.mihanblog.com

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      Creating a DMG doesn't cure the crash.

      Where do you run the application? On your developer workstation or some other Mac?

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kitten
        wrote on last edited by
        #3

        developer workstattion

        www.kitten.mihanblog.com

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          You then should investigate what's going wrong with the plain application bundle. You don't need to put it into a DMG or CD image.

          Just run the macdeployqt processed bundle in the debugger and look where it crashes.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kitten
            wrote on last edited by
            #5

            ok i will check it , but it works fine on hard , when i write it to cd via windows it doesn't run correctly,

            www.kitten.mihanblog.com

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              Do you happen to write somewhere on the disk in you application and try to open/read that later on? That would explain why it works on the file system, but not on read-only media.

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kitten
                wrote on last edited by
                #7

                i write only in temp folder and in my directory i only read and don't write any thing

                www.kitten.mihanblog.com

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kitten
                  wrote on last edited by
                  #8

                  sorry again, i have a question
                  can be the problem for this code?i trace my code and i thoungt it can be for this
                  @ QDir dir = new QDir("Data/Note");
                  QStringList filters;
                  filters << "
                  .html" << "*.htm";
                  dir->setNameFilters(filters);
                  myfiles = dir->entryList(QDir::Files);
                  khandaniha->setUrl(QUrl("Data/NOTE/"+myfiles.at(0)));
                  khandaniha_count = 0;
                  @

                  the data folder is near of my program

                  www.kitten.mihanblog.com

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kitten
                    wrote on last edited by
                    #9

                    i found the problem, my dir was NOTE with uppercase letter i was wrote it with lowercase

                    www.kitten.mihanblog.com

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mlong
                      wrote on last edited by
                      #10

                      Glad you found your issue.

                      Be sure and edit the title of your post to add [Solved] to the beginning! Thanks!

                      Software Engineer
                      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                      1 Reply Last reply
                      0

                      • Login

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