Possible to have a directory structure in the app/native file system?

I have implemented some assets in the bar - descriptor.xml, some of which are files (to root) and some files (which have files and other subfolders in their midst).

If I inspect 'BAR packages' with the IDE everything seems to look OK, IE:

AppName.bar
+ native
   - File 1   - File 2   + Folder      - File 3      - File 4

From code, I can call the function fopen() to files in the root (file 1 and 2 file in the example above) and read without problem.  However, any attempt to verify the existence of the folder with stat() or attempt to browse with opendir () /readdir () it fails completely, as if it does not exist.

In fact, I tried iterate the contents of the folder root app/native with opendir () /readdir () in order to see what is there and it does not work too (opendir() returns NULL).

I'm starting to think that simply directory on app/native operations are not possible.  Am I missing something?

Thanks for your help everyone, after some messing around I managed to solve my problem (s)!

I changed my code to use a relative path (app/native) rather than building an absolute path based on the working directory.  This solves nothing but contributed to make paths easier to deal with in general (note: sample PlayWavFileMakefile should probably be changed to use the relative method, since it's where I copied it from).

Then, I changed the to a zip file .bar file to inspect the content and used perspective of information for the system of the IDE to inspect the mounted volume my application during execution.  Being new to this platform, I didn't realize you could do either of these things - everything checked OK, but this gave me full confidence that the problem was probably in my code and do with the operating system or my package bar.

Finally I found that I had two problems:

-The first was to make a stupid mistake when you use the QNX dirent_extra_stat specific structure to establish if a line item is a file or a directory during the iteration of the directory tree.

-The second problem was hard to find but easy to solve.  I found that I could iterate directories using opendir () /readdir () successfully, but only on the main thread.  Most of my file access is on a thread of work however, and this does not.  By inspecting errno of the filesystem in the event of failure, I found that there was a story out of memory.  I realized that I had to use a larger stack size when creating the thread, and then everything worked OK.  Interestingly, I used only a small battery of 4K, which worked well on WIndows, OS X, iOS and Android, but I had to wear to 32K for the PlayBook.  Most likely, QNX uses the stack for many of its variables from work here and other platforms support the pile.

I hope this can help someone else in the future.

Tags: BlackBerry Developers

Similar Questions

  • Is it possible to have as a home inside the documentation button

    Hello

    I am using the HR 11 and get ready to explore the possibilities offered by the WebHelp, and I was wondering if it would be possible to have a home button inside the Web documentation that would point to the first point, when the documentation is open.

    I did not see as possibilities of control items everything except the Index, glossary and search.

    Thank you

    Thank you so much Rick.

    I'll try it out and eventually let you know how it goes, OK?

  • Is it possible to have a dialog box embedded in a Module file download purchase?

    Is it possible to have a dialog box embedded in a Module file download purchase? I want to guide a user through the steps to place an order, which is to transfer a file of logo. It's so much cleaner to have the Logo Upload be associated directly with a command passed, rather than having a file separate upload is not directly related to an order.

    FileUpload.gif

    You do not have at this point. You can add the custom registration fields purchase form and have it at this stage.

  • Consultation problem Mac Photoshop Elements 11. Unable to open the program. He tells me that it is damaged. To remove the program and reinstall it from the app store. Again, I have install my purchases in the app store, and yet, I have the same problem. T

    Consultation problem Mac Photoshop Elements 11. Unable to open the program. He tells me that it is damaged. To remove the program and reinstall it from the app store. Again, I have install my purchases in the app store, and yet, I have the same problem. Thank you.

    I just wanted to make account - it seems that the problem has been resolved. After another remove & reinstall it is operational!

  • How to revive the last work, then from the APP? Or system restart?

    How to revive the last work, then from the APP? Or system restart?

    EIB zu ADOBE: "geht nicht mehr!  (this function is not longer possible)

  • Standby Redo logs and the Directory Structure in the Backup Site

    Hi guru

    I just want to confirm, I know that if the directory structure is different, I need to talk about these 2 settings in the file pfile

    on the main site:

    DB_CONVERT_DATAFILE = 'sleep', 'primary '.

    LOG_CONVERT_DATAFILE = 'sleep', 'primary '.

    On the secondary Site:

    DB_CONVERT_DATAFILE = 'primary', 'sleep '.

    LOG_CONVERT_DATAFILE = 'primary', 'sleep '.

    But I want to confirm this weather I have to deliver the full path of the directory in the two paramtere above:

    as:

    DB_CONVERT_DATAFILE = ' / u01/oracle/app/oracle/oradata/sleep ', ' / u01/oracle/app/oracle/oradata/primary.

    LOG_CONVERT_DATAFILE = ' / u01/oracle/app/oracle/oradata/sleep ', ' / u01/oracle/app/oracle/oradata/primary.

    Second Confusion: -.

    After that transfer standby Redo logs creates primary and made to sleep on the foregoing, mentioned the directory structure and after restoring the alongwith primary db backup, that ensures the control file will not affect the journal of physics again placed watch on the above mentioned location.

    Thanks in advance for your help

    vk82 wrote:

    In fact, I create the day before by using the RMAN Duplicate command. but where I am confused is the point if I transfer the backup that i taken the pri on the C:\backup_files path. and after that, I transfer the backups to the waiting on C:\backup_files. After that when I restore it will create datafile and other stuff in another directory I mentioned using DB_FILE_NAME_CONVERT as LOG_FILE_NAME_CONVERT. I think Yes but need your advice during the same period.

    Hello

    Yes, files should be created under the directory mentioned in the path of the parameters 'db_file_name_convert' and 'log_file_name_convert.

    Kind regards
    Shivananda

  • Is it possible to have a credit card for the sharing of family and another credit card for a family member?

    I want to have my credit card business for my purchases and subscriptions and have our personal card for the rest of the family purchases. Is it possible within a group sharing family?  If so, how it is configured?

    I think it's only 1 card credit payment to the folder.  However, family members may have gift or store credit which can be used for purchases.  If you credit cards/store gift for their accounts, then they may use their purchases, Yes?

    Purchases and payments - Apple Support families

  • Is it possible to have Txt Mssgs removed from the iWatch, during the deletion on the iPhone?

    Is it possible to have removed from the iWatch, txt mssgs once they have been deleted on the iPhone?

    Hello

    Delete the message is not synchronized on devices (and there is no way to enable this). Messages must on the contrary be deleted separately on each device (this is also how the app works through additional Apple devices, like a computer, iPad,...).

    The mirror that my iPhone for Apple Watch determines how you will be informed about new messages. If you choose custom, for example, you can decide if your watch watch alerts, audio or haptic alerts are provided and if (including the number of times), alerts are repeated when you receive new messages.

  • possible to have a display value and the return of LOV

    Hello

    With the help of obiee 11g, I have a variable prompt that takes column as value.
    I have the report that I use a diff column eual to this prompt value.
    I wanted to know if its possible at all to have a view and a return value
    i.e. in the lov, we show a value and when we choose we choose a different value that goes to the filter

    For example. If we have an APAC region in the table, and then in the show LOV in Asia-Pacific and it returns APAC, so that
    in the data filter gets filtered using ICCA.

    Thank you

    You can try something like this sql in the Prompt Variable:
    SELECT CASE WHEN Office.Region = "ACPA" THEN 'Asia-Pacific' WHERE Office.Region = END 'EMEA' THEN 'EUROPE' TO THE "subject domain name.

    And then in the report so you need to change the column fx filter
    CASE WHEN Office.Region = "ACPA" THEN 'Asia-Pacific' WHERE Office.Region = END 'EMEA' THEN 'EUROPE '.

    Note: This is very good for the case where you have less no.. of LOVs in the column.

    Hope it will be useful...

  • Is it possible to have two mice connected at the same time?

    Hello. I have a gamer mouse, and I am pretty tired of changing the battery every now and then. So I was wondering if I could connect a wired mouse, I could use on the desktop, while my current mouse is always connected - for when I want to do some gaming. Windows Vista will allow that I have two mice connected at the same time?

    Hello

    You can connect two mice of universal Bus controller to the computer, but it goes to show that a single pointer.

  • Directory structure is the difference between FPJ and GUI file

    Hello world

    I have added many HTML files to the project. and the changes saved to the project. So I closed RoboHelp and reopened this project.

    Then the FPJ content file paths of files and the content is displayed in project manager (GUI) is different.

    Why the difference?

    Can I continue to use this project? Is that what I should do?

    These difference appear in the following image.

    CompFPJAndGUI.png


    Hello

    Your cpd file should have the entry of these three files, with which they appear in the GUI. For some reason, your fpj file has not been updated.

    To update the fpj file, create a new folder inside the content folder and save all.

    This should update your file fpj.

    Try it and tell us how it goes.

    Thank you and best regards,
    Manu of FIFA

  • Apple have an eta on when the App Store will be running again

    LLooking fofor an eta for the App Store being upwards and will again

    Hi Persi,

    There has been no updates/ETA announced for 6 hours, many services have worked for some people; even if everything works for me. I'll keep you updated as soon as I hear something new.

  • I have 2 logical filenames for the same physical file (Documents of Kenneth Stewart; My Documents) in the different trees how to solve this without deleting my Documents?

    C:\Kenneth documents Stewart is a tree.
    C:\Documents and owner Documents is the other.
    Physically, this is the same file.

    Documents of the C:\Kenneth Stewart is just a shortcut to the real file which is C:\Documents and owner Documents. At some point you have renamed the owner to Kenneth Stewart, without is realizing that this is a cosmetic change only and does not change the underlying profile files/records. So even if you could say "Kenneth Stewart" on the Welcome screen, the real name of the user account is 'owner '. MS - MVP - Elephant Boy computers - don't panic!

  • Is it possible to search for applications while using the App Store of Win8?

    Seems simple enough for me. I saw one can perform a search using the browser, but what's the point of that? With the help of two applications to perform a task. If I wanted to work on a formula for drinking water and I'd get an abacus. Ridiculous. If it is possible to search in the app how is it possible to find?

    Quite frustrating, IMO.

    Yes, from the beginning, click on store, when the store is in the start menu by typing what you are looking for.  Hope this helps and if you need any additional aid station and we will be happy to help you.

    The above opinion is mine and mine nothing and does not necessarily reflect that of Microsoft, it's employees, or any other Member of this forum

    "When we try to take anything by itself, we find it hitched to everything else in the universe."-John Muir

  • Is it possible to call a custom method in the App Module to a backing bean?

    I would like to know if a custom in the App Module method can be called from inside of a pod of support.
    I don't know if it is logically just call, to a backing bean, a custom in the App Module method. But I would like to know if this is necessary or if it is possible.

    Hello..
    Yes it is possible. You must add this interface method customer of AppModule.Now you can see this method in data Controls(Refresh the data control). To call this method using bean, should be added as an action method links (click on links > + > methodAction > and create the binding of the action).
    Now, you can call this method in the bean class.
    Check like uses this concept to run the display criteria

    http://ADF-Lk.blogspot.com/2011/05/Oracle-ADF-create-view-criteria-and_4727.html

Maybe you are looking for

  • Mobile phone as modem Bluetooth for SP6100

    Does anyone know how to get my K700i to work as a modem for my 6100 SatPro via Bluetooth? What are the settings required on the SP6100?

  • Compaq 6200: Grahpics card Compaq upgrade 6200

    I spent 3 hours searching. So many different customers, so many cards, so many questions. I don't want to waste money because I searched all stores in my area. Wal-Mart, Best Buy and a few private belonging to used computer stores. The pc I have is c

  • Merge faces of a same person under a false name

    I appointed the same person in the face with 2 different versions of their name. How to merge them?

  • registration of eFax

    I have a wireless internet connection that works very well, but he didn't sign up for eFax

  • Windos 7 64 bit fast blink "" does not "programs."

    Well I searched high and low on other forums around the internet but I can't seem to find someone with quite the problem I have here, and I'd really appreciate some help and pointers. So, that is the question. Of many programs, opening, will begin fl