File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5

Hi
I am facing one problem when I complie and run my code
with the following compiler and standard C++ library :
OS Used : SunOS GUILIN 5.8 Generic_108528-13 sun4u sparc SUNW,UltraAX-i2
Compiler Used : g++ 3.3.3
Standard Library Used : libstdc++.so.5
Problem : I am supposed to create 1000 file streams,
but when I run my program, it creates only 254 file streams,
after that assertion occurs!!!!
OUTPUT :
========
$ echo $SHELL
/usr/bin/sh
$
$ ulimit -n
50000
$
$ ./a.out
i : 253
errno : 24
Assertion failed: in, file main.cpp, line 28
Abort - core dumped
$
========
MY CODE :
==================================================
#include <sys/errno.h>
#include <assert.h>
#include <fstream>
#include <iostream>
#include <string>
extern int errno;
const int MAX_STREAM = 1000;
using namespace std;
int main(int argc, char* argv[])
ifstream in[MAX_STREAM];
string file("boo");
for ( int i=0; i != MAX_STREAM; i++ )
in[i].open(file.c_str());
if ( errno > 0 ) {
cout << "i : " << i << endl;
cout << "errno : " << errno << endl;
} // end of "if ( errno > 0 ) {"
assert(in[i]);
return 0;
===================================================
But, if I compile the exactly same program with the
following compiler and run the executable under the
same environment as above, it is running without
any problem and 1000 file streams are created
smoothly without any assertion.
OS Used : SunOS GUILIN 5.8 Generic_108528-13 sun4u sparc SUNW,UltraAX-i2
Compiler Used : g++ 2.95.3
Standard Library Used : libstdc++.so.2.10.0
Anybody can help me to overcome this problem with
g++ 3.3.3 compiler and libstdc++.so.5 library.
With Very Best Regards
Subrata Basak
MediaRing Ltd., Singapore

CVS differentiate text and binary files (they are marked as one or the other by using a CVS option when adding the file). If a file is marked as text, cvs will perform line-end conversion if needed.
On Linux, line endings are coded as LF, whereas on Windows they're coded as CRLF. When you copied files from Windows to Linux, you probably did a binary copy, which left the CRLFs intact. When you checked those files into CVS on the Linux server, Linux CVS did not convert the CRLFs into LFs.
The result of this is that if you check the files out on Linux, they will still contain CRLF (which is wrong for Linux). You may verify this by checking out a file on Linux, then opening it using vi -b. The CRs should show as extra ^M's at the end of each line.
If, on the other hand, you check out the file on Windows, a conversion will take place, where all LFs are converted to CRLF. The result of this is that your file will contain CRCRLF at the end of each line.
The best way to fix this is probably to check everything out on the Linux box, remove every CR from every file, then check everything back in again.

Similar Messages

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I c

    I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I can do to repair it

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • Problems with creation of catalogue XPGrpwise and temporary

    Problems with creation of catalogue XPGrpwise and temporary files.
    I use GroupWise 8.01 and WinXP (SP2), OpenOffice 3.1.
    Why at opening files in Library, temporary files are not created in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\XPGrpwise, and created in catalogue C:\Documents and Settings\Jon Smith\My Documents. That causes problems. How to change a situation that worked as it is necessary.
    Catalogue XPGrpWise is created and leaves duly in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\.

    Cvetaev,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Performance Problems with MS IE 6.0 and EP 7.0 (2004s)

    Hello,
    we have a problem with ie 6.0 webbrowser and EP 7.0 (2004s). When we open for example the theme editor in the ep-system-administration site we must wait with MS ie 6.0 webbrowser ~ 18s for the site opening. With firefox 2.0 we can open the theme editor with ~ 1s.
    Have/Had anybody the same problem? - Or is this a knowing problem with ie 6.0.
    We used for the network analyse the tool: httpwatch 3.2. We can see, that the ie 6.0 must wait into the all-time of 18sec. 13sec for opening the site: emptyhover.html.
    - Thanks in advance for a tip !
    Best Regards,
    Ralf

    Hello Ameya and hello Shao,
    we use the version SP12 NW 2004s. We have the this problems with a base application of portal: theme editor.
    We can see in the httpWatch 3.2 analysis tool, that the ie 6.0 load a much of cache files from the client webbrowser. Could it be this problem? - I red in this forum problems with the webbrowser-parameter: "Empty Temporary Internet Files folder when browser is closed"
    Thank you for your helping.
    Best Regards,
    Ralf

  • Problem with installing Photoshop elements 9 and adobe support advisor

    Hi, I've received a graphic tablet with 2 programs: the first has been downloaded and works perfectly while the second, PSE9, has been giving me problems for at least a week!
    I downloaded it and now I have a winzip file full of strange things (one of this is set up exe which tells me that I have to install adobe support advisor) and two files which said 3DF.tmp and PSEP9(1).zip.download and if I try to click them they tell me that I have to find on the Net the program to open them because I can't. And I don't know which program is required.
    I tried a lot of times to download the adobe support advisor, I have enough space on my disc and my farewall is deactivated, but when the program begins I saw this annoyant message
    cpsid_82829s5 Missing installation file bootstrapper error occured
    with this code for a support from adobe 00-67325-032018052012
    I unistalled it and retried, but nothing.
    Please, I just want to use my tablet with the programs which are comprised in the package, why it's so difficult to download this damn photoshop elements 9????????????
    Thank you

    In the error message it doesn't tell me
    "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again,"
    neither "Installer failed to initialize. File not found. Please download Adobe Support Advisor to detect the problem."
    and I have enough space and I have Windows xp then I should be able to install it. I tried to unistall and install again the support advisor but nothing. I'm desperate.
    Messaggio originale----
    Da: [email protected]
    Data: 18/05/2012 22.20
    A: "Questionlady"<[email protected]>
    Ogg: Problem with installing Photoshop elements 9 and adobe support advisor
    Re: Problem with installing Photoshop elements 9 and adobe support advisor created by Jeff A Wright in Trial Download &amp; Install FAQ - View the full discussion
    Did you try the steps listed in http://helpx.adobe.com/creative-suite/kb/troubleshoot-error-messages-b ootstrapper-cs5.html which was identified by the Adobe Support Advisor?  If so can you please list each step and the result of those steps.  This will allow us to best advise you on your next steps.
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4420419#4420419
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4420419#4420419. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Trial Download &amp; Install FAQ by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • When streaming a movie with the new Apple TV, and using a DSL Internet connection, all audio sound works, e.g., the music track, but the audio track with the actor's voices, does not work. What can I do?

    When streaming a movie with the new Apple TV, and using a DSL Internet connection, all audio sound works, e.g., the music track, but the audio track with the actor's voices, does not work. What can I do?

    Hi Brian,
    Thanks restoring and restarting didn't fix my problem - i have started it fresh and still it doesn't work. Basically I press ONCE on the remote, after the machine has not had any commands for 10 minutes, and the cursor skips from one end of the menu to the other - so I can't choose network or update software etc - I sometimes manage to stop it randomly in the middle of the menu if I press on a command in the middle of the cursor skipping all the menu steps...not sure what the problem is but I have basically not used my brand new apple tv since I bought it for that reason! I should call Apple support I suppose! grrrr hate wasting time with stuff like this!
    Thanks for your help though!
    Pernille

  • I'm using mac with the newest operating system (snow leopard 10.6.7). since I've updated to Firefox 4 It doesn't display Hebrew fonts- I didn't have any problems with it before the upgrade and in safari I don't have this problem.

    Hello, I'm using Mac with the newest operating system (snow leopard 10.6.7). since I've updated to Firefox 4 It doesn't display Hebrew fonts… I didn't have any problems with it before the upgrade and in safari I have no problem with it. please help me- I don't like to use safari a my browser...

    elly903 wrote:
    Before commenting - I CANNOT install Mavericks because it'll mess up the versions of Filemaker Pro and Quicken that I use regularly...
    Quicken 2007 for Intel (Snow Leopard, Lion, Mt. Lion and Mavericks) for $15:
    http://quicken.intuit.com/personal-finance-software/quicken-2007-osx-lion.jsp
    It will input your Quicken PPC data file directly if it was Quicken 2005 through 2007.  If older you need Quicken 2006 or 2007 PPC first to convert your data file; and this update must be done BEFORE you upgrade to Mavericks:
    http://quicken.intuit.com/support/help/patching/quicken-2006-manual-updates--mac -/GEN82200.html
    Filemaker Pro PPC (in this case 7) running in Snow Leopard Server installed into Parallels for use in Lion, Mt. Lion and Mavericks:
                                  [click on image to enlarge]
    Snow Leopard Server: 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only)
    This solution allows you to run your Photoshop Elements in Mavericks concurrently with Filemaker Pro PPC.  Mavericks is a free download.

  • Problem with a nokia 5310 xpress and a bluetooth

    i have problem with a nokia 5310 xpress and a bluetooth!i can transfer anything from my phone to pc with or without pc suite! but when i want to transfer files from pc to phone i doesen"t work! with pcsuite soethings work but very slow! i want to transfer files witout pcsuite !
    the blue tooth adapter it is dongle and it the software that i use is BlueSoleil 2.6.08
    CAn anyone help me?

    I'm having bigger problems...
    the screen goes all white and off after a lil while....
    Not even the vendor could do anything....

  • Problem with the browse sequence back and browse sequence next widget placed in the screen layout

    Hi,
    Some basics: We are using Robohelp 10 to  generate multiscreen  html5 output. We used the pharmaceutical  screen layout downloaded from:  http://helpx.adobe.com/robohelp/robohelp-screen-profiles-layouts.html but modified it to match our GUI.
    We are having a problem with the browse sequence back and browse sequence next buttons placed in the screen layout from the widgets tool bar. We are in no way experts at this part of Robohelp...and the css portion of all this is a bit of mystery but we have managed to get mostly what we need. Now we just need these buttons to work. In the past we used Airhelp and things worked great. Can anyone help us understand why the sequence buttons are not showing up in the output even though it does in the topic preview?
    Also
    This shows up in the  layout.css file:
    a.wBSBackButton {
                    margin: 0 8pt 0 0;
                    padding: 0;
                    background-color: transparent;
    img.wBSBackButton {
                    border: none;
    a.wBSNextButton {
                    margin: 0 8pt 0 0;
                    padding: 0;
                    background-color: transparent;
    img.wBSNextButton {
                    border: none;
    Also btw, I forgot to mention that we are linking our FrameMaker files.
    Appreciate the help.
    Thanks!

    hi pradeep
    It does not happen but if you Wait for a while that may be solved

  • Problem with Xsan 2.1.1 and Mac Os server 10.5.6

    Hi,
    We have a big problem with xsan 2.1.1 and Mac Os server 10.5.6.
    - We have one server, is a Open Directory Master, and also is a metadata controller of xsan2. The Volumes of xsan2 are shares via afp, and the clients (moreless 50) connect with server via afp.
    - We have some problems, one of them is:
    odm fsm [341]: XSAN FSS 'VolDocs [0] ' : Invalid inode lookup: 0x7f80000000007e0 markers 0x0/0x0 nextiel 0x0
    This message is always in the log. We stop the volume, and start cvfsck -wv, but dont have anything, how fix it??
    - Another problem is with AFP service, suddenly the service stop, and the error is :
    mds [58] (error) Server: Mach error queueing checkin to peer manager: (ipc /send) invalid port right.
    -What of the meaning of (ipc/send) invalid port right??.
    And the last error is:
    -com.appelAppleFileServer [347] MDSChannelPeerRequest: (ipc/rcv) timed out.
    Need Help please!.

    My configuration:
    - Master Directory:
    Hardware Configuration:
    Model: Xserve
    Processor: 2x2,8 Ghz Quad-Core Intel Xeon
    Memory 8 Gb
    Disk: 70,04 Tb
    Software:
    Kernel Version: 9.6.0
    System Version: Mac OS X Server 10.5.6
    Xsan 2.1.1
    Services: AFP, DNS, Open Directory RADIUS
    Status: connected Users: 37
    This server is the open directory Master and metadata controller of xsan2, but we have another server that is open directory replica and metadata controller of xsan2. The fisrt server have too many errors with afp, the service stop and the server is dead, and you must restart via terminal with the command sudo reboot. I dont know what happen, do you help me please?

  • Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    This is a major problem with Lollipop, but yo said it started 2 months ago.   Several people have fixed problem by removing FaceBook And Face book messenger and then re loading the apps again.   You might want to clear your cache before reloading.  Not sure this is your problem, but worth a try.  Good Luck

  • HT4009 Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I wan

    Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I want you to help me everyways to refound my monet back.Could you?

    Contact iTunes Store Support.

Maybe you are looking for

  • Problem with Input help inside an adobe interactive forms

    Hi Experts, I'm currently implementing a Webdynpro ABAP application containing a Interactive forms. I'm using Adobe Live Cycle Designer 8.0, Acrobat reader 9.2, Internet Explorer 7.0 My problem is that when I click on the "input help" button inside t

  • Problem in jdbc connect thru oracle

    hi all i hv installed oracle 8i on win2k i wanna connect thru jdbc but i am getting error below i donno whr i got struck? plz help me thnx in advance bye ////////// details /////////////////////// import java.sql.*; ///win2000,oracle 8i /// try to fi

  • The Question Set about JDBC Adapter

    Hello Experts, I have some confusion about the JDBC Adapter as below, pls help me : 1. While the JDBC Sender Channel is executing the select statement then I interrupt it, if the ResultSet ought to have 5000     records, so I stop the Channel that it

  • Shuts Down Randomlly

    My Macbook shuts down randomly - and happens daily. I have both updates that are required to fix this problem - and it still is not working. Does anyone know anything about this?

  • M2ts AVCHD suddenly giving unsupported compression error

    Hi -- I spent all day yesterday doing a rought cut of some AVCHD footage, closed the project last night and tried to open it this morning and suddenly all my AVCHD footage is "offline." If I try to relink it I get an error message saying the files ha