Next Question about NWDS/WDJ Tutorial #2 - bottom of page 29

At the bottom of p.29 of the NWDS/WDJ Tutorial #2, it says to rebuild the project and deploy/run the application so that you can see the "runtime behavior" of the app at this stage of development.
OK - so I get a clean rebuild with no errors.
I also get a clean deploy/run with no errors.
But when the application "pops", there is nothing but a blank frame.
I know this is not a config problem, because I can still run the Tutorial #1 application and have it "pop" the way it is supposed to.
I have redone the tutorial up to page 29 twice now to make sure I have made no mistakes. 
But I still get that d***d blank frame when I do what it says to do at the bottom of page 29.
What might have I done wrong that I'm not aware of ??
And how can I tell what I've done wrong if the rebuild and the deploy/run are clean with no error messages ???
Thanks for any insight anyone can provide.
djh

ar/rh -
Yes - your suggestions led me to the right answer.
Although BG says to set the VerticalSlashPosition of the viewset QuizViewSet to 50% when creating it (in #7 at the top of page 19), he does not say to set the default property of this viewset to "true".
As soon as I did this, the view popped.
I'm giving 6 to you and asking Craig/Gali to give ar 6 also.
Dave

Similar Messages

  • Two other minor errors in NWDS/WDJ Tutorial #2 (and one mroe question)

    First:
    In the layout instructions for the QuesdtionMarkView on page 25-26 of Tutorial #2, it does not say to delete the default text view (although it does say to do this for the other views.)  So when you first deploy/run as per instruction on page 29, you will see the text "QuestionMarkView" as well as the question mark image itself.
    Second (a little more important):
    On page 29, the tutorial seems to read as if the code generator has ALREADY added the line
    (1)  wdThis.wdFirePlugStartQuizOut();
    for the START plug, and that you only have to add this line of code for the EXIT plug:
    (2) wdThis.wdGetQuizInterfaceViewController().wdFirePlugGotoUrl("http://www.sap.com");
    But inn my version of NWDS, line #1 bove has NOT already been added by the code generator for the START plug, and it has to be added manually as well as line #2.
    Is this a change in the operation of the code generator or an error in the tutorial?

    hi L.M.:
    You may be right, though I can't tell at this point if I missed the step you mention when following BG's instructions on page 28 of WDJ Tutorial #2.  I'm pretty sure I followed his instructions to set plug values for all view actions, including StartQuizOut for StartPressed.  I'm sure I'll hit this again in another tutorial, and will check at that point to see if you're right.
    Anyway, 10 for explaining how the NWDS "points-and-clicks" are related to the code generator.
    Thanks
    djh

  • FAO BalusC  Question about your JSF tutorial

    I have the tutorial working fine now, it was a problem with the caching in my browser I think.
    My question is how now do I get your example to work with myFaces? What steps must I follow now in order to get the app to work with myFaces? Do I need to copy in all the commons*.jar files along with the myfaces jars to my apps classpath?

    I have got the app working now with myfaces. I got a blank app from http://www.coreservlets.com/JSF-Tutorial/ but what puzzles me is why are all the extra jars needed for the myfaces implementation that were not needed for the RI one?

  • Question about a sun tutorial

    Many times on here i have been told that its bad to have more than 1 JFrame in 1 application. I am working on my stuff and i am trying to look at other applications to help me. I came across the suns tutorial relating to Dukes Bakery, which is swing and JDBC. Nearly every class in this tutorial extends a JFrame. I just wanted to get more information on why it is bad to extend more than 1 JFrame and why would they do this in this tutorial.
    cheers

    nick2price wrote:
    Many times on here i have been told that its bad to have more than 1 JFrame in 1 application. I've never seen this as bad, but extending a JFrame may be.
    I am working on my stuff and i am trying to look at other applications to help me. I came across the suns tutorial relating to Dukes Bakery, which is swing and JDBC. Nearly every class in this tutorial extends a JFrame. I just wanted to get more information on why it is bad to extend more than 1 JFrame and why would they do this in this tutorial.
    cheersIf you are using a JFrame as your base for a GUI form, then extending the JFrame itself is considered "bad practice" as you are mixing GUI and coding/program/business logic usually to do so. In cases of building GUI's keep your display and your program code separate. With good designed GUI's you will usually not have to extend your JFrame class, possibly with the exception of Graphics/animations.

  • 2 questions. can i get rid of the " thousands of add ons" dialogue box below my browser? i find it annoying,pointless and it feels like a commercial and second i want the about mozilla text at the bottom of the page gone can these 2 things be removed?

    just want those 2 things to not be on my homepage. i know how to use the add ons link in the options panel why do i need a text button on my home page. and also the "about mozilla" button at the bottom of page couldnt this also be in the options panel? i just want a clean looking home page with nothing on it i didnt put there.

    There's a lot there, so I'll start with the parts I can answer quickly.
    The "ACL found but not expected..." messages can be safely ignored, so says this article
    http://docs.info.apple.com/article.html?artnum=306925
    (look below all the "SUID" examples)
    I had changed my Desktop image earlier but when the "Installing 1 item" window came up it changed back to the back ground that you first see on your desktop after installation.
    Leopard installs updates a bit differently. If it's simply an application that does not change system files, it installs them like before, without having to restart. If the update is to the system, then you must immediately "restart," It then goes to that stars and purple screen to perform the installation. Before, it would do the installation while you still had control of the Mac and would prompt you to restart when it finished the installation. This change probably make things more secure and reliable, because you aren't allowed to do other things on the Mac while system updates are being installed.
    Please post back with the remaining point of concern.

  • MIME directory in WDJ Tutorial #2: Question 1 of 2

    On page 26 of WDJ tutorial #2 (Creating Extended WD App), it says to store the MIME objects in
    com.sap.tc.webdynpro.tutorials.quiz.Quiz
    But the directory
    com.sap.tc.webdynpro.tutorials.quiz.QuizComp
    is already there (created automatically by NWDS.)
    Does the tutorial REALLY mean "Quiz", or does it mean "QuizComp"?
    This is question 1 of 2 - see next post for related question ...

    If you want to use images in UI elements and want to simply use the image file name as property value (e.g. in Image.source), you have to put the images into folder
    src/mimes/components/<qualified-component-name>
    for the component containing the view with the UI elements. The runtime is then able to create the correct URL from the file name automatically.
    Otherwise, you would have to create the URL in your application by yourself.
    Armin

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • A question about tutorial fligh_list

    Hi, i have a question about web dynpro in java. I´m doing the tutorial fligh_list, but i have a doubt in this part:
    public void wdDoInit()
    //@@begin wdDoInit()
    // Create a new element in the Bapi_Flight_Getlist_Input node
    Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
    wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
    // Create new elements in the Destination_From and Destination_To nodes
    input.setDestination_From(new
    Bapisfldst());
    input.setDestination_To(new Bapisfldst());//@@end
    What is Bapisfldst?
    I´m doing a simple application, only have an input field and the output is two textview... what have i write in the previous method instead of Bapisfldst?
    Thanks,

    Thanks, but i continuo with my doubt... i don´t know what write in my simple application...
    I post an image
    !http://img141.imageshack.us/img141/3236/aplicacionto9.th.jpg|alt=Free Image Hosting at www.ImageShack.us|src=http://img141.imageshack.us/img141/3236/aplicacionto9.th.jpg|border=0!
    My doubst are in the red circle, i´m not sure about these... The application consists in write a code of material and appear the lots in a list. I di the steps that appear in the tutorial... Is it good?
    Thanks,

  • Less dumb follow-up question about super/sub classes in WDJ?

    This is a follow-up question to the question which Maksim answered in this thread:
    Dumb question about super/sub classes in WDJ
    Question:
    Is there any kind of weird C++-like statement that you can put at the top of a WDJ module to force the module to interpret any reference to superclass A as a reference to some specific subclass B of A ???

    David,
    1. Java has no preprocessor, so C++ tricks are not available. Also I would not recommend such tricks even in C++ if you don't want to turn your colleagues working with same code into personal enemies.
    2. The phrase "easier to create a WDJ custom class loader " makes me smile. First, it's not that simple to interfere WDJ class loading scheme. Plus custom class loaders is not trivial Java topic per se.
    3. The problem "replace all A-s with B-s" is typically solved using one or another GoF creation patterns, like <a href="http://en.wikipedia.org/wiki/Abstract_factory_pattern">Abstract Factory</a> or <a href="http://en.wikipedia.org/wiki/Factory_method_pattern">Factory Method</a>. You may use them with custom class loader, if you really want to
    By the way, all UI controls in WD are created using Abstract Factory (role played by view). So you may use this as good example.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Some questions about Muse

    First of all, I would like to say that I am very impressed with how well Muse works and how easy it was to create a website that satisfies me. Before I started a daily updated website I thought I would encounter many problems I will not be able to solve. I have only had a few minor issues which I would like to share with you.
    The most problems I have with a horizontal layouts (http://www.leftlane.pl/sty14/dig-t-r-3-cylindrowy-silnik-nissana-o-wadze-40-kg-i-mocy-400- km.html). Marking and copying of a text is possible only on the last (top) layer of a document. The same situation is with widgets or anything connected with rollover state - it does not work. In the above example it would be perfect to use a composition/tooltip widget on the first page. Unfortunately, you cannot even move the cursor into it.
    It would be helpful to have an option of rolling a mouse to an anchor (like in here http://www.play.pl/super-smartfony/lg-nexus-5.html and here http://www.thepetedesign.com/demos/onepage_scroll_demo.html).  I mean any action of a mouse wheel would make a move to another anchor/screen. It would make navigation of my site very easy.
    Is it possible to create a widget with a function next anchor/previous anchor? Currently, in the menu every button must be connected to a different anchor for the menu to be functional.
    A question about Adobe Muse. Is it possible to create panels in different columns? It would make it easier to go through all the sophisticated program functions.
    The hits from Facebook have sometimes very long links, eg.
    (http://www.leftlane.pl/sty14/mclaren-p1-nowy-krol-nurburgring.html?fb_action_ids=143235557 3667782&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=288381481237582). If such a link is activated, the anchors in the menu do not work on any page. I mean the backlight of an active state, which helps the user to find out where on page they currently are. The problem also occurs when in the name of a html file polish fonts exist. And sometimes the dots does not work without any reason, mostly in the main page, sometimes in the cooperation page either (http://www.leftlane.pl/wspolpraca/). In the first case (on main page), I do not know why. I have checked if they did not drop into a state button by accident,  moved them among the layers, numbered them from scratch and it did not help. In the cooperation page, the first anchor does not work if it is in Y axle set at 0. If I move it right direction- everything is ok.
    The text frame with background fill does not change text color in overlay state (http://www.leftlane.pl/sty14/nowe-mini-krolestwo-silnikow-3-cylindrowych.html). I mean a source button at the beginning of every text. I would like a dark text and a light layer in a rollover, but  the text after export and moving cursor into it does not change color for some reason.
    I was not sure whether to keep everything (whole website) in one Muse file (but I may be mistaken?). I have decided to divide it into months. Everyone is in a different Muse file. If something goes wrong, I will not have any trouble with an upload of a whole site, which is going to get bigger and bigger.
    The problem is that every file has two master pages. Everything works well up to the moment when I realize how many times I have to make changes in upper menu when I need to add something there. I have already 5 files, every with 2 masters. Is there any way to solve this problem? Maybe something to do with Business Catalyst, where I could connect a menu to every subpage independently, deleting it from Muse file? Doing so I would be able to edit it everywhere from one place. It would make my work much easier, but I have no idea jendak how to do it.
    The comments Disqus do not load, especially at horizontal layouts  (http://www.leftlane.pl/sty14/2014-infiniti-q50-eau-rouge-concept.html). I have exchanged some mails and screenshots with Disqus help. I have sent them a screenshot where the comments are not loaded, because they almost never load. They have replied that it works at their place even with attached screenshot. I have a hard time to discuss it, because it does not work with me and with my friends either. Maybe you could fix it? I would not like to end up with awful facebook comments ;). The problem is with Firefox on PC and Mac. Chrome, Safari and Opera work ok.
    YouTube movie level layouts do not work well with IE11 and Safari 7 (http://www.leftlane.pl/sty14/wypadki-drogowe--004.html). The background should roll left, but in the above mentioned browsers it jumps up. Moreover the scrolling with menu dots is not fluent on Firefox, but I guess it is due to Firefox issues? The same layout but in vertical version rolls fluently in Firefox (http://www.leftlane.pl/sty14/polskie-wypadki--005.html).
    Now, viewing the website on new smartphones and tablets. I know it is not a mobile/tablet layout, but I tried to make it possible to be used on mobile hardware with HD (1280) display. I mean most of all horizontal layouts (http://www.leftlane.pl/sty14/2015-hyundai-genesis.html), where If we want to roll left, we need to roll down. Is there a way to make it possible to move the finger the direction in which the layout goes?
    On Android phones (Nexus 4, Android 4.4.2, Chrome 32) the fade away background effect does not work, although I have spent a lot of time over it (http://www.leftlane.pl/lut14/koniec-produkcji-elektrycznego-renault-fluence-ze!.html). It is ok on PC, but on the phone it does not look good. A whole picture moves from a lower layer instead of an edge which spoils everything.
    This layout does not look good on Android (http://www.leftlane.pl/sty14/nowe-mini-krolestwo-silnikow-3-cylindrowych.html#a07). The background does not fill the whole width of a page. There are also problems with a photo gallery, where full screen pictures should fill more of a screen.
    Is it possible to make an option of  scroll effects/motions for a fullscreen slideshow widget thumbnails (http://www.leftlane.pl/sty14/2014-chevrolet-ss%2c-rodzinny-sedan-z-415-konnym-v8.html#a06)? It would help me with designing layouts. Currently, it can go from a bottom of a page at x1 speed or emerge (like in this layout) by changing opacity. Something more will be needed, I suppose.
    Sometimes the pictures from gallery (http://www.leftlane.pl/sty14/2014-chevrolet-ss%2c-rodzinny-sedan-z-415-konnym-v8.html#a06 download very slowly. The website is hosted at Business Catalyst. I cannot state when exactly it happens, most of the time it works ok.
    I really like layouts like this (http://www.leftlane.pl/sty14/2014-chevrolet-ss%2c-rodzinny-sedan-z-415-konnym-v8.html#a03). On the top is a description and a main text, and the picture is a filled object with a hold set at the bottom edge. That is why there is a nice effect of a filling a whole screen- nevertheless the resolution that is set. It works perfect on PC, but on Android the picture goes beyond the screen. You can do something about it?
    In horizontal layouts (http://www.leftlane.pl/sty14/dig-t-r-3-cylindrowy-silnik-nissana-o-wadze-40-kg-i-mocy-400- km.html) holding of a filling object does not work. Everything is always held to upper edge of a screen regardless the settings. Possibility of holding the picture to the bottom edge or center would make my work much easier.
    According to UE regulations we have to inform about the cookies. I do not know how to do it in Muse. I mean, when the message shows up one time and is accepted, there would be no need to show it again and again during another visit on the website. Is there any way to do it? Is there any widget for it maybe?
    The YouTube widget sometimes changes size just like that. It is so when the miniature of the movie does not load, and the widget is set to stroke (in our case 4 pixels, rounded to 1 pixel). As I remember ( in case of a load error) it extends for 8 pixels wide.
    Last but not least - we use the cheapest hosting plan in Business Catalyst. The monthly bandwidth is enough, although we have a lot of pictures and we worried about it at first. Yet we are running out of the disk storage very quickly. We have used more than a half of a 1 GB after a month. We do not want to change BC for a different one, because we like the way it is connected with Muse. But we do not want to buy the most expensive package - but only this one has more disk space. We do not need any other of these functions and it would devastate our budget. Do we have any other option?
    I’m using Adobe Muse 7.2 on OS X 10.9.1.
    and I'm sending Muse file to <[email protected]>

    Unfortunatley, there is no way to get a code view in Muse. I know quite a few people requested it in the previous forum, but not really sure where that ended up. Also, you may not want to bring the html into DW unless you only have 1 or 2 small changes 2 make. Two reasons. First, it isnt backwards compatible, so if you are planning on updating that site in Muse, you will need to make those changes in DW everytime you update. Second, by all accounts the HTML that Muse puts out is not pretty or easy to work with. Unlike you, I am code averse, but there was a lenghty discussion on the previous forum on this topic. I know they were striving to make it better with every release, just not sure where it is at this point.
    Dont think I am reading that second question right, but there was a ton of info on that old site. You may want to take a look there, people posted a ton of great unique solutions, so it worth a look.
    Here is the link to the old forums- http://support.muse.adobe.com/muse

  • Just installed iOS6, questions about "iMessage" and other things...

    I've been a satisfied iOS4 user since I bought my iPhone4, but I was forced to install iOS6 tonight in order to download a "free" app. I found a few new icons on the screen along with about 200 percent more "Settings" I'd like to ask some questions about. I'm sure a few of these could be answered by doing a frantic and thorough search through weeks of posts but I'm a little short on time right now.
    First, what exactly is iMessage? Looking at the page for it, I can't see any difference between it and regular text messages. The info page says its to avoid charges, but between my data plan and not being charged for text I don't see where theres any other benefit. The one person I text with the most recently asked me why I had not installed iMessage yet, and didn't have an answer when I asked him why I should. I guess he just wanted to see text replies in blue instead of green.
    In a related bit, flipping through Settings>Messages>Send & Receive I find a "2 addresses" section, with my phone number in there as well as my email under "You can be reached by iMessage at:" and "Start new conversations from:". What good does it do iMessages to have my email address? Does the Mail app handle text as well as email addresses? That seems to be the only explanation, and also very odd to think I'd be trying to text through my Mail app.
    Second, looking through the Settings>Mail I see now that I have an icloud email address as well as the mac.com address I've been desperately hanging on to for the past 10 years, and the me.com address they've been trying to force me into since those came out. (I was happy to see I could delete the me.com address from the phone. I wish I could delete it from the universe.)
    I wasn't even aware there was a such thing as icloud.com addresses. When did this happen? What is it used for?
    Third, under that icloud Setting I see a long list of apps with buttons labeled "Off" under it. What are those for? Under the Mac.com settings I see switches for "Mail" and "Notes", with Mail on and Notes off. The Notes app (which I haven't used since my old iPhone 3) still opens, regardless of this setting.
    Fourth, I now have an item called "Facetime" under my Settings. It is off, but underneath it says "Your phone number and/or email address will be shared with people you call". I understand caller ID normally sends caller number info to the receiver, but why would someone need my email address if I call them?
    Fifth, I now have a "Music" setting, at the bottom of which I see a "Home Sharing" item, which when clicked brings up my AppleID and asks me if I want to Sign Out or Cancel. What is Home Sharing? Its also at the bottom of the "Video" settings.
    Sixth, now I have Twitter and Facebook settings? For what? I don't have accounts with either of those companies. So why have settings, especially since it asks me to create accounts and download apps for those companies right in the Settings?
    Seventh, there is a camera icon on the unlock screen. Touching it causes the screen to bounce up about a quarter inch, almost but not quite revealing something behind it. I should probably just quit asking about this stuff already, but I'll take the bait - what is this now?
    Finally, what is the Notification Center used for?
    If I got a text under iOS4, it would put an alert on the Unlock screen. Scrolling through this huge list of things under the Notification settings I'm really blown away by all the apps set up to yell at me. I can see having an alert for a text message but Game Center? What the heck is that, and why is it set up to hit me with a "Badge App Icon" (whatever that is) when I get alerts from "Everyone". Similarly, the phone is set to alert me to something called a "Photostream Alert"? What is this? Why is there a Phone section for the Notification Center? So they can put a Notice on my screen to tell me the phone is ringing? Holy cow! The phone is set to send me alerts from the "Weather Widget". So if I miss the fact its raining there will be a message on my screen to let me know? Whats next - a buzzer to tell me I'm listening to music?
    There's a lot more, like what would I need Passbook for when I have the actual movie tickets, gate boarding passes, coupons, etc in my hands, but we'll leave that for another time. Many thanks to all who can offer some answers to my questions above.

    Hey Taantumus!
    Here is an article that will provide some guidance on this question:
    Apple ID: Changing your password
    http://support.apple.com/kb/ht5624
    The next time you use an Apple feature or service that uses Apple ID, you'll be asked to sign in with your new Apple ID password.
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • IWDMessageManager in WDJ Tutorial #3(Simple Input Form), p.23

    Prior to typing in any of the code shown on page 25 of WDJ Tutorial #3, the generated Java code looks like this for the checkDateInPast method:
      //@@begin javadoc:checkDateInPast()
      /** Declared method. */
      //@@end
      public void checkDateInPast( java.lang.String fieldName )
        //@@begin checkDateInPast()
        //@@end
    When I type in the first line of the code to be added, the result looks like this:
      //@@begin javadoc:checkDateInPast()
      /** Declared method. */
      //@@end
      public void checkDateInPast( java.lang.String fieldName )
        //@@begin checkDateInPast()
        IWDMessageManager msgMgr =
          wdComponentAPI.getMessageManager();
        //@@end
    But right away I get this error message:
    "IWDMessageManager cannot be resolved or is not a type."
    I have checked back carefully on previous pages and don't see anything I've neglected to do.
    Can someone suggest what might be going on here, either an error in the tutorial or an error in something I've done ????
    Thanks
    Dave

    Yes - that did it, thanks.
    Before you answered I found another way - I looked back at the Java for the views in previous tutorials and found these statements:
    import com.sap.tc.webdynpro.progmodel.api.*;
    import com.sap.tc.webdynpro.progmodel.gci.*;
    import com.sap.tc.webdynpro.progmodel.context.*;
    When I added these, the error message went away also - obviously because the IWDMessageManager is included in progmodel.api.*
    But while you're around let me ask you the following question:
    When I do it your way (ctrl-shift-o), how does NWDS know to add just the line for the MessageManager:
    "import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;"
    Thanks.
    Dave

  • Muvo V200, question about the play m

    Hello,I have a question about the play mode on my V200. I want to play the songs in a specific order (like in a playlist) but I don't find the way to do this. Can you help me please ?
    Thanks
    (sorry if I don't speak english very well, but I'm french )

    Hi!
    To get the tracks to play in a specific order, put numbers at the beginning of each file name. E.g.: file 'examplesong.mp3' would become '0_ examplesong.mp3' Don't spend years doing that manually though; the computer will do it for you! Click on 'my computer', then click on 'Muvo V200 media explorer'.. This shows the contents of your player. Choose the folder that you want to reorder the songs in...
    ( it's best to put the songs in folders, like you would in a floppy disk, as the muvo can only hold a certain amount in the root directory, and folders are great for organisation - eg: you can put one CD in each folder, and then the player will play all of the tracks in that folder before moving on to the next one )
    ...and click on it to display the songs. In the pictures along the top of the window, 4th from the right is an icon with a downward facing arrow and an A above a Z. Click on this, it's called 'custom sort'. You can then use the arrows at the bottom to change the order of your tracks to how you want them. Click OK, and they'll all be numbered (and so will play) in that order.
    Hope that helps!
    x

  • Questions about Rooting...

    Hi everyone, I’ve some questions about rooting my Xperia Arc S. Hopefully I’ll get helpful answers from you.
    If I root my phone, shall I get regular software official updates from Sony?
    Currently Sony is rolling out the ICS update. After rooting the phone am I able to upgrade my phone to ICS?
    While rooting the phone if any damage is done, can that be recoverable by installing a fresh OS or something?
    Does the rooting process delete all the existing contacts, messages, apps etc?
    Finally can anyone please provide a full proof guide/tutorial for rooting the Xperia Arc S?
    Thanks in advance.
    Solved!
    Go to Solution.

    Do you have an app named Super USer ?
    Were you on 4.0.4 and then rooted your mobile using this method ?
    If yes then your mobile is not rooted for sure
    See how to root 4.0.4 here
    Discussion guidelines.
    Message me or any other moderator to seek help regarding moderation.

  • Hi Chris -- follow up to my question about using TSQ to store strings of different sizes

    Thanks for your response.
    I did read about those method you mentioned. I have some troubles with each method:
    1/ Using TSQ as byte stream.
    This is what I chose to use. I basically write to the queue the way you described with an exception about the number of byte to write. I did as followed:
    CmtWriteTSQData (tsqHandle, buffer, strlen (buffer),TSQ_INFINITE_TIMEOUT, NULL);
    with buffer as the buffer containing my string. Note that strlen(buffer) is not same each time. Also a thread is doing the writing to the queue and another thread is doing the reading. This leads to my next question: How do you read these strings out?
    Right now I am reading one
    byte at a time with:
    while (1)
    CmtReadTSQData (tsqHandle, tempbuf, 1, 10, 0);
    in a loop, with tempbuf to contain this single char, and then store it in another buffer until I read out a CR of LF which signals the end of a string.
    Will I have any problem?
    Could you please provide an alternative?
    2/ Using TSQ to contain pointers to strings.
    I haven't tried this method since I think it requires allocation of rather large static array of buffer and also requires keeping track of these pointer in a link list.
    Would you elaborate how you would use TSQ this way in my case.
    3/ Lastly, the way I described in (1) works only if I have the main thread to do writing, and another thread to do reading. Some how it doesn't work when I used one thread to do writing, one thread to do reading, and the main thread to handle user interface. I found out that the program spends all its time in the reading thread (inside the while loop).
    Why is it different if the writ
    ing thread is the main thread? Do I miss something like priority,... or anything like that?
    Thank you so much.

    You really should consider using event driven reading. There is examples of this in the Multithreading examples in cvi\samples\utility\Threading. Then you will get an event in the reader thread whenever a certain number of items are available to read. If you use the byte stream method, you should send the message length with each method so you know how to package the messages back on the reader side.
    For the pointer method, you would malloc the buffer on the writer side, send the pointer to the reader, then the reader would free the memory when it is done with the data.
    I don't understand why what you are describing in 3 occurs. If you aren't setting priority to something other than default, then each thread should get time. If you want to free up time i
    n a thread that is taking to much, just put a small Delay in that thread.
    If you want more help on this, you can look at the examples I mentioned above, read the Multithreading Overview available in PDF form in the cvi\bin directory or contact NI support at http://www.ni.com/ask.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

Maybe you are looking for

  • Getting a library audiobook to work on my iPod Touch (3rd gen).

    I have downloaded several audiobooks in the past from the library. They have all been MP3. But I am trying to download Game of Thrones and it is WMA. We use a program called OverDrive. I downloaded it to my PC first and it works on there, but when I

  • How can we add a checkbox in form (Scripts)

    Hello Experts,          i want to add a checkbox in the form. how can v add a check box in the form. i tried with sap scripts symbols like sym_checkbox but it's not working. and i can print a small box by using Box statement. but i need exactly a che

  • BTE Name in Called Function Module

    Hello, A function module say XYZ is called from a BTE. Can I know the name of the BTE which called the function module XYZ inside the function module XYZ ? With Regards, Avisesh.

  • Generic DataSource Creation

    Hi Gurus, Can anybody let me know about the list of errors that are normally occured while creating Generic DataSource. I have been asked in aninterview Please gurus. Thanks inadvance Murali

  • Sun Studio 12 IDE and dbx

    I got fresh installation of the Sun Studio 12 on Solaris 10, and I am trying to debug in the IDE. Project is using Sun Studio's compiler. But in the options I can see only gdb debugger. I looked into installed plugins, and there is no plugin for dbx