12.3 and 12.4 beta. Cannot change the size of the ostream buffer with stlport.

The following program does not work as expected when compiled with -library=stlport4
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
    cout.rdbuf()->pubsetbuf(new char[20*1024+1], 20*1024+1);
    cout.sync_with_stdio(false);
    for(int i=0; i!=50000; ++i)
        cout << i;
CC t.cc -library=stlport4 && truss -t write ./a.out > /dev/null
will show that it uses buffer-size of 4096
The same with 12.4.
This example will work if we exchange the order of the two cout...  lines.
Without library=stlport4 it works fine.

Yes, that looks like a bug in STLport. I have filed bug 18810043 for you. If you have an Oracle Solaris Studio service contract with Oracle, you can request a fix.
The workaround is simple: move the sync_with_stdio call to the top of main.
In fact, the effect of calling sync_with-stdio after any I/O operation can vary among implementations, so doing the call first is better programming practice anyway.

Similar Messages

  • I click on layouts and still cannot change book size

    I'm trying to change the size of the ibook before I buy it. I've tried several options buy cannot figure it out. Any help would be appreciated. 

    duplicate the book for safety and then click on themesand select teh same theme with a new size
    LN

  • How do I change the size of the words on the banner and tool bars?  The words are so large that I cannot access all the options.

    How do I change the size of the words on the banner and tool bars?  The words are so large that I cannot access all the options.

    Hi ewhuntley,
    It sounds like you may be running Acrobat 11.0.07, is that correct? If so, please choose Edit > Preferences > General. In the entry Scale for Screen Resolution, choose 100%. Save your changes, and restart Acrobat. Did that do the trick?
    Best,
    Sara

  • HT1918 on my account settings the shipping address is set on United States and it seems I cannot change it to UK... so my address is not accepted, what can I do?

    on my account settings the shipping address is set on United States and it seems I cannot change it to UK... so my address is not accepted, what can I do?

    To change it, you have delete the existing account.  However you can avoid losing any pictures in the process.  To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.  (Camera roll photos are not effected by deleting the account.)
    Then go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.

  • Slider is locked and cannot change dock size

    The slider is locked and I cannot increase the size of the icons on the dock. Please help.

    Have you restarted the iMac, if so and that did not fix the problem reset the SMC and PRAM. Instructions are in iMac SMC and PRAM reset

  • Cannot change column size in iPod Classic

    I received my Classic today and transferred over all my music. After making changes to various things, I tried to adjust the size of the columns. I cannot.
    I was able to delete a column, then re-add it then change the size. In my 5th Gen Video ipod I could just but the cursor on the right side of the column and click, it would adjust to the size of the largest, Name, Artist, Album etc. I am able to change column sizes in itunes, just not the ipod.
    I've looked through threads to find something that resembles my problem but most seem to be with itunes and not the ipod. Both computers I use are updated to 7.4.1
    I was wondering if I restore the factory settings would I be able to change the column sizes without having to delete and re-add them? Or is this another new lovely and VERY annoying update to itunes/ipod?
    Thanks.

    I can confirm that it's not (specifically) your iPod and it's not your OS. I'm running the newest iTunes through Mac OS 10.3.9 with a 3G iPod and just made a playlist with the same problems. NONE OF MY OTHER PLAYLISTS are affected - the columns there adjust just fine, but any NEW playlists I generate on my iPod will not allow me to individually adjust columns. Right-clicking on a column header does not even allow me to "Auto Size Column", but only to affect ALL the columns, or choose a column to add or remove.
    Interestingly enough - new playlists I generate in iTunes (not on the iPod) work normally. However, it isn't feasible for my 10GB hard drive to automatically sync with my 15GB iPod, so I can't test and see if dragging a playlist to the iPod will generate one with alterable columns.
    My opinion is that this is in some way related to the 7.4 or 7.4.1 update. I believe I last generated a playlist before the 7.4 update, and had no problems.

  • Shop told me that i cannot change my iphone4s because The warranty is out from Humidity..

    My problem is the power button cannot press...
    but I went to the shop
    Shop told me that i cannot change my iphone4s because The warranty is out from Humidity..
    I think it's not fair for me,
    My iPhone never been soak the water before..
    I think I used it in Thailand ,, it's tropical weather...
    that's not my false ..
    so why i cannot change?
    Please tell me the good reasons.
    Thanks

    Here is the article about it:
    iPhone and iPod: Liquid damage is not covered by warranty
    Since we are all users here just like you, we can't do anything about decisions made by Apple.
    You'll have to pay for a replacement:
    Out-of-Warranty Service
    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5
    $229
    iPhone 4S
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax.
    When setting up out-of-warranty service, Apple will request credit card pre-authorization for the maximum service fee listed above.  This amount will be deducted from your credit limit. The final service fee we charge will be determined during testing and may be less than the service fee listed above.
    Certain damage is ineligible for out-of-warranty service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. However, an iPhone that has failed due to contact with liquid may be eligible for out-of-warranty service.
    Apple reserves the right to determine whether or not your iPhone is eligible for Out-of-Warranty service. iPhones that are repaired or replaced have a 90-day limited hardware warranty or assume the remainder of your standard warranty or AppleCare service contract coverage, whichever is longer. Please see Apple's Repair Terms And Conditions for further details.
    Message was edited by: Ingo2711

  • I cannot change apple id when the app store asks me to update anything

    i cannot change apple id when the app store asks me to update anything

    App Store products can only be updated by signing in to the store with the same Apple ID that was originally used to download them. You can't update anything, including your own purchases, as long as there are pending updates linked to the other ID.
    If you can't sign in with the other ID, you have to delete all the apps that are linked to it. If you don't know which apps those are, see below.
    1. Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    2. In the Finder, press command-F to open a search window, or select
              File ▹ Find
    from the menu bar. In the search window, select
              Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu of search criteria, initially showing Kind. From that menu, select
              Other...
    A sheet will drop down. In that sheet, select
              Raw Query
    as the criterion, then click OK or press return.
    Now there will be a text box to the right of the menu of search criteria. That's where you enter the raw search query. Click in that box and paste the text you copied earlier by pressing command-V.
    3. The search window will now show all the App Store products that are installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    4. At least one of the apps in the Spotlight search results is not among your purchases in the App Store. Delete each such item by following the instructions in the Apple Support article linked above.
    5. Quit and relaunch the App Store.
    If you find these instructions confusing, ask for an alternative method.

  • I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

    I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

    I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

  • How do I change the size of the tools and the text for the menus in Photoshop?  I need a magnifying glass in order to make out what they are.

    How do I change the size of the tools and the text for the menus in Photoshop?  I need a magnifying glass in order to make out what they are.

    Okay, I've figured it out, so I'm going to answer my own question in hopes that it may help anyone else that would like to actually be able to see what they're doing when using Photoshop CC 2014 on a high resolution screen.
    1.  Open Photoshop.
    2.  Select Preferences from the Edit Menu, then select General.
    3.  Change the HUD Color Picker to Hue Strip (Medium).
    4.  Select Interface from the Preferences menu on the left side of the dialog box.
    5.  Change the UI Font Size to Large in the Text area of the Preferences dialog box.
    6.  Select Experimental Features from the Preferences menu on the left side of the dialog box.
    7.  Select Scale UI 200% for high-density displays (Windows only).
    8.  Click on OK, then Exit/Quit Photoshop.
    9.  Open Photoshop and everything should be readable.

  • After creating a pdf can I change the size of the font when uploading in acrobat and what version?

    After creating a pdf can I change the size of the font when uploading in acrobat and what version?

    What do you mean by "uploading in Acrobat"?
    (Note that if you change the size of text, it won't reflow, so you end up with a mess. Answer is, probably not useful)

  • In putting together a book I can move photos onto a page and enlarge the picture but is there a way to reduce the picture size? some cases I want a smaller picture and if I change the size of the picture box I only get a portion of the image. I wnt to red

    picture size...in putting together a book I can move photos onto a page and enlarge the picture but is there a way to reduce the picture size? some cases I want a smaller picture and if I change the size of the picture box I only get a portion of the image. I want to reduce the image to fit the size of the box.

    If you right click on the image on the page in the context menu select photo box alignment and then select one of scale to fit {centered, Left-aligned, Right-aligned}
    That should do what you are loking for.

  • HT2523 how can i change the size of the picture i have copied and paste

    how can i change the size of the picture i have copied and paste

    If this question is about TextEdit, I don't think you can do it in TextEdit, after pasting the image.  TextEdit is meant to be a basic text editing program.
    You will have to open the image file in an image editing application.  You can use Preview for doing this, or something more fancy.  If it's Preview, just open the image file.  From the menu bar, under Tools, select Adjust Size.  Make the image the desired size.  Then, select (outline) the portion of the image you want in the Preview document window.  Copy it, and paste it into the TextEdit document window.

  • All tools in panels toolbar are disabled meaning I cannot change to any of the alternatives-E.g. Cannot select various Type tools as when I drag out I get the "disabled (Stop symbol)". Really need help with this, been like this for a while now. Many Thank

    Panels tool bar is completely unresponsive. Cannot change to any of the alternatives.
    I am using The most up to date Adobe Illustrator CC on Yosemite.

    I actually can't believe I was being that stupid.
    Thank you very much! This solves the issue.
    Many Thanks,
    Ronan

  • Cannot change Tax Code from the referenced sales order line

    hi,
    Has anyone ever got this error when creating Sales Order(SO): "*cannot change Tax Code from the referenced sales order line*"?
    The error occur with order type Return.
    This SO is created by copying from another SO.
    Please help.
    Regards & thanks,
    eRie

    hi,
    Has anyone ever got this error when creating Sales Order(SO): "*cannot change Tax Code from the referenced sales order line*"?
    The error occur with order type Return.
    This SO is created by copying from another SO.
    Please help.
    Regards & thanks,
    eRie

Maybe you are looking for