dev-cpp-users Mailing List for Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
(2) |
2
|
3
(2) |
4
(1) |
5
(2) |
6
(4) |
7
(1) |
8
(1) |
9
|
10
(1) |
11
|
12
|
13
(3) |
14
(1) |
15
|
16
(1) |
17
(4) |
18
(2) |
19
(1) |
20
(2) |
21
(2) |
22
|
23
(2) |
24
(2) |
25
(6) |
26
(3) |
27
(11) |
28
(7) |
29
(1) |
30
(8) |
|
|
|
|
|
|
From: Per W. <pw...@ia...> - 2007-09-30 17:37:35
|
Yes, every MinGW tool - on their own - will work in directories with spaces and with file names containing spaces, but every caller - and Makefiles etc - must specifically add break characters or quote paths and file names. There is no real difference from when using them on a Unix machine. /pwm On Sun, 30 Sep 2007, Jonathan Winterflood wrote: > Compiler toolchains have a historical limitation of ton accepting > whitespaces in filenames passed to them (options on the command-line are > seperated withe spaces), back from the times when whitespace was illegal in > filenames. > > This is why dev-cpp does not want you to have any spaces there. > I don't know if this limitation is still true about the compiler dev-cpp > uses... > I guess you could try moving it and see what happens > > HTH, > Jonathan > > On 9/30/07, Elliott Slaughter <ire...@gm...> wrote: > > > > The tilde is also a taboo character, and gets you the same error as white > > space. > > > > I guess I could install it to a new directory like C:\Bin\Dev-Cpp, but I > > would prefer not to install it to C:\Dev-Cpp because I don't want random > > program subdirectories in the root directory. > > > > Are there any other options? > > > > I would like to comment to the makers of the install file that it should > > allow you to set the directory to any valid Windows directory without > > imposing limits on white space and such. While the default directory can be > > C:\Dev-Cpp, and while it might be a good idea in general to avoid white > > space and such in names, there really shouldn't be arbitrary limits stopping > > users from doing so if they really want to. > > > > On 9/30/07, Radu Siulea <ra...@tr...> wrote: > > > > > > Try *C:\progra~1* for *c:\Program Files* > > > > > > > > > > > > > > > > > > -----Original Message----- > > > *From:* dev...@li... [mailto: > > > dev...@li...] * On Behalf Of *Elliott > > > Slaughter > > > *Sent:* Sunday, September 30, 2007 6:02 AM > > > *To:* dev...@li... > > > *Subject:* [Dev-C++] Installing Dev-C++ on Windows XP > > > > > > > > > > > > I am attempting to install Dev-C++ on my Windows XP machine using the > > > automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems > > > getting it to install into the directory I want it to. The default directory > > > is "C:\Dev-Cpp", but I would like it to install into the "C:\Program Files" > > > directory. However, when I try to do this, I get an error saying > > > "Installation directory cannot contain ' '. Only letters, numbers, and > > > ':-_\' are allowed." which gets in the way of my installing it where I want > > > it. I could just install it in the default location, but I prefer to keep my > > > root directory clean of specific applications, or I could move it after > > > installing it, but I really don't want to go into the registry to fix > > > everything. So if I can't get it to install nicely I am more likely just use > > > MSVC instead. > > > > > > Thanks for all assistance in advance. > > > > > > -- > > > Elliott Slaughter > > > > > > "Any road followed precisely to its end leads precisely nowhere." - > > > Frank Herbert > > > > > > > > > > > -- > > Elliott Slaughter > > > > "Any road followed precisely to its end leads precisely nowhere." - Frank > > Herbert > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > -- > <Morpheus> linux, c'est une question de VI ou de MORE > |
From: Per W. <pw...@ia...> - 2007-09-30 17:21:04
|
Do thank the installer writer for stopping you from installing the tool in directories that doesn't work. Command-line tools normally uses space as separator between file names - not as a valid character inside directories and file names. To use gcc or make or the other tools, every single file/directory with spaces must either use a break character before the spaces or put the names within quotes. Whenever you see special rules, you should always stop and spend some time figuring out _why_ they have spent extra time adding these special rules. It would have been a lot easier for them to accept any characters at all... However, a lot of MinGW and/or Dev-C++ users would then have been very, very sad and complained. /pwm On Sun, 30 Sep 2007, Elliott Slaughter wrote: > The tilde is also a taboo character, and gets you the same error as white > space. > > I guess I could install it to a new directory like C:\Bin\Dev-Cpp, but I > would prefer not to install it to C:\Dev-Cpp because I don't want random > program subdirectories in the root directory. > > Are there any other options? > > I would like to comment to the makers of the install file that it should > allow you to set the directory to any valid Windows directory without > imposing limits on white space and such. While the default directory can be > C:\Dev-Cpp, and while it might be a good idea in general to avoid white > space and such in names, there really shouldn't be arbitrary limits stopping > users from doing so if they really want to. > > On 9/30/07, Radu Siulea <ra...@tr...> wrote: > > > > Try *C:\progra~1* for *c:\Program Files* > > > > > > > > > > > > -----Original Message----- > > *From:* dev...@li... [mailto: > > dev...@li...] *On Behalf Of *Elliott > > Slaughter > > *Sent:* Sunday, September 30, 2007 6:02 AM > > *To:* dev...@li... > > *Subject:* [Dev-C++] Installing Dev-C++ on Windows XP > > > > > > > > I am attempting to install Dev-C++ on my Windows XP machine using the > > automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems > > getting it to install into the directory I want it to. The default directory > > is "C:\Dev-Cpp", but I would like it to install into the "C:\Program Files" > > directory. However, when I try to do this, I get an error saying > > "Installation directory cannot contain ' '. Only letters, numbers, and > > ':-_\' are allowed." which gets in the way of my installing it where I want > > it. I could just install it in the default location, but I prefer to keep my > > root directory clean of specific applications, or I could move it after > > installing it, but I really don't want to go into the registry to fix > > everything. So if I can't get it to install nicely I am more likely just use > > MSVC instead. > > > > Thanks for all assistance in advance. > > > > -- > > Elliott Slaughter > > > > "Any road followed precisely to its end leads precisely nowhere." - Frank > > Herbert > > > > > > -- > Elliott Slaughter > > "Any road followed precisely to its end leads precisely nowhere." - Frank > Herbert > |
From: Steven C. <ste...@gm...> - 2007-09-30 17:08:07
|
My best guess is that it's not the installer engine that's the problem. I don't have much (okay, any) experience with MinGW outside of DevCPP but in my experience paths with spaces muck up a lot of things. I would guess the installer is smart to not let the user install to a long path name because of limitations with either the compiler or one of the other tools associated with it. It's also just good practice on the Windows platform to keep it simple whether or not you have any intention of later using any legacy tools. But I'm with you on never installing anything at the root of %systemdrive%. On 30/09/2007, Elliott Slaughter <ire...@gm...> wrote: > > The tilde is also a taboo character, and gets you the same error as white > space. > > I guess I could install it to a new directory like C:\Bin\Dev-Cpp, but I > would prefer not to install it to C:\Dev-Cpp because I don't want random > program subdirectories in the root directory. > > Are there any other options? > > I would like to comment to the makers of the install file that it should > allow you to set the directory to any valid Windows directory without > imposing limits on white space and such. While the default directory can be > C:\Dev-Cpp, and while it might be a good idea in general to avoid white > space and such in names, there really shouldn't be arbitrary limits stopping > users from doing so if they really want to. > |
From: Jonathan W. <jon...@gm...> - 2007-09-30 17:05:09
|
Compiler toolchains have a historical limitation of ton accepting whitespaces in filenames passed to them (options on the command-line are seperated withe spaces), back from the times when whitespace was illegal in filenames. This is why dev-cpp does not want you to have any spaces there. I don't know if this limitation is still true about the compiler dev-cpp uses... I guess you could try moving it and see what happens HTH, Jonathan On 9/30/07, Elliott Slaughter <ire...@gm...> wrote: > > The tilde is also a taboo character, and gets you the same error as white > space. > > I guess I could install it to a new directory like C:\Bin\Dev-Cpp, but I > would prefer not to install it to C:\Dev-Cpp because I don't want random > program subdirectories in the root directory. > > Are there any other options? > > I would like to comment to the makers of the install file that it should > allow you to set the directory to any valid Windows directory without > imposing limits on white space and such. While the default directory can be > C:\Dev-Cpp, and while it might be a good idea in general to avoid white > space and such in names, there really shouldn't be arbitrary limits stopping > users from doing so if they really want to. > > On 9/30/07, Radu Siulea <ra...@tr...> wrote: > > > > Try *C:\progra~1* for *c:\Program Files* > > > > > > > > > > > > -----Original Message----- > > *From:* dev...@li... [mailto: > > dev...@li...] * On Behalf Of *Elliott > > Slaughter > > *Sent:* Sunday, September 30, 2007 6:02 AM > > *To:* dev...@li... > > *Subject:* [Dev-C++] Installing Dev-C++ on Windows XP > > > > > > > > I am attempting to install Dev-C++ on my Windows XP machine using the > > automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems > > getting it to install into the directory I want it to. The default directory > > is "C:\Dev-Cpp", but I would like it to install into the "C:\Program Files" > > directory. However, when I try to do this, I get an error saying > > "Installation directory cannot contain ' '. Only letters, numbers, and > > ':-_\' are allowed." which gets in the way of my installing it where I want > > it. I could just install it in the default location, but I prefer to keep my > > root directory clean of specific applications, or I could move it after > > installing it, but I really don't want to go into the registry to fix > > everything. So if I can't get it to install nicely I am more likely just use > > MSVC instead. > > > > Thanks for all assistance in advance. > > > > -- > > Elliott Slaughter > > > > "Any road followed precisely to its end leads precisely nowhere." - > > Frank Herbert > > > > > > -- > Elliott Slaughter > > "Any road followed precisely to its end leads precisely nowhere." - Frank > Herbert > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Elliott S. <ire...@gm...> - 2007-09-30 16:48:30
|
The tilde is also a taboo character, and gets you the same error as white space. I guess I could install it to a new directory like C:\Bin\Dev-Cpp, but I would prefer not to install it to C:\Dev-Cpp because I don't want random program subdirectories in the root directory. Are there any other options? I would like to comment to the makers of the install file that it should allow you to set the directory to any valid Windows directory without imposing limits on white space and such. While the default directory can be C:\Dev-Cpp, and while it might be a good idea in general to avoid white space and such in names, there really shouldn't be arbitrary limits stopping users from doing so if they really want to. On 9/30/07, Radu Siulea <ra...@tr...> wrote: > > Try *C:\progra~1* for *c:\Program Files* > > > > > > -----Original Message----- > *From:* dev...@li... [mailto: > dev...@li...] *On Behalf Of *Elliott > Slaughter > *Sent:* Sunday, September 30, 2007 6:02 AM > *To:* dev...@li... > *Subject:* [Dev-C++] Installing Dev-C++ on Windows XP > > > > I am attempting to install Dev-C++ on my Windows XP machine using the > automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems > getting it to install into the directory I want it to. The default directory > is "C:\Dev-Cpp", but I would like it to install into the "C:\Program Files" > directory. However, when I try to do this, I get an error saying > "Installation directory cannot contain ' '. Only letters, numbers, and > ':-_\' are allowed." which gets in the way of my installing it where I want > it. I could just install it in the default location, but I prefer to keep my > root directory clean of specific applications, or I could move it after > installing it, but I really don't want to go into the registry to fix > everything. So if I can't get it to install nicely I am more likely just use > MSVC instead. > > Thanks for all assistance in advance. > > -- > Elliott Slaughter > > "Any road followed precisely to its end leads precisely nowhere." - Frank > Herbert > -- Elliott Slaughter "Any road followed precisely to its end leads precisely nowhere." - Frank Herbert |
From: Steven C. <ste...@gm...> - 2007-09-30 16:22:11
|
I haven't had any problems putting Dev C++ in C:\BIN\Dev-CPP\ As I have a lot of other little utilities and programs that want 8.3notation and/or short paths it makes sense. Overly long paths still screw up Windows XP sp2 and Windows 2003 R2 (as I keep telling marketing). On 30/09/2007, rodolfo d'Ettorre <rod...@ho...> wrote: > > Dev-c++ does not work with directories that have white spaces, so stick > with > c:\Dev-Cpp. > > Cheers > > Rodolfo d'Ettorre > > > >From: "Elliott Slaughter" <ire...@gm...> > >To: dev...@li... > >Subject: [Dev-C++] Installing Dev-C++ on Windows XP > >Date: Sat, 29 Sep 2007 20:02:29 -0700 > > > >I am attempting to install Dev-C++ on my Windows XP machine using the > >automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems > >getting it to install into the directory I want it to. The default > >directory > >is "C:\Dev-Cpp", but I would like it to install into the "C:\Program > Files" > >directory. However, when I try to do this, I get an error saying > >"Installation directory cannot contain ' '. Only letters, numbers, and > >':-_\' are allowed." which gets in the way of my installing it where I > want > >it. I could just install it in the default location, but I prefer to keep > >my > >root directory clean of specific applications, or I could move it after > >installing it, but I really don't want to go into the registry to fix > >everything. So if I can't get it to install nicely I am more likely just > >use > >MSVC instead. > > > >Thanks for all assistance in advance. > > > >-- > >Elliott Slaughter > > > >"Any road followed precisely to its end leads precisely nowhere." - Frank > >Herbert > > > >------------------------------------------------------------------------- > >This SF.net email is sponsored by: Microsoft > >Defy all challenges. Microsoft(R) Visual Studio 2005. > >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > >_______________________________________________ > >Dev-cpp-users mailing list > >Dev...@li... > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > _________________________________________________________________ > Advertisement: Your Future Starts Here. Dream it? Then be it! Find it at > www.seek.com.au > > http://a.ninemsn.com.au/b.aspx?URL=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fninemsn%2Eseek%2Ecom%2Eau%2F%3Ftracking%3Dsk%3Ahet%3Ask%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=SEP07_endtext_Future&_m=EXT > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: rodolfo d'E. <rod...@ho...> - 2007-09-30 11:06:48
|
Dev-c++ does not work with directories that have white spaces, so stick with c:\Dev-Cpp. Cheers Rodolfo d'Ettorre >From: "Elliott Slaughter" <ire...@gm...> >To: dev...@li... >Subject: [Dev-C++] Installing Dev-C++ on Windows XP >Date: Sat, 29 Sep 2007 20:02:29 -0700 > >I am attempting to install Dev-C++ on my Windows XP machine using the >automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems >getting it to install into the directory I want it to. The default >directory >is "C:\Dev-Cpp", but I would like it to install into the "C:\Program Files" >directory. However, when I try to do this, I get an error saying >"Installation directory cannot contain ' '. Only letters, numbers, and >':-_\' are allowed." which gets in the way of my installing it where I want >it. I could just install it in the default location, but I prefer to keep >my >root directory clean of specific applications, or I could move it after >installing it, but I really don't want to go into the registry to fix >everything. So if I can't get it to install nicely I am more likely just >use >MSVC instead. > >Thanks for all assistance in advance. > >-- >Elliott Slaughter > >"Any road followed precisely to its end leads precisely nowhere." - Frank >Herbert >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Advertisement: Your Future Starts Here. Dream it? Then be it! Find it at www.seek.com.au http://a.ninemsn.com.au/b.aspx?URL=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fninemsn%2Eseek%2Ecom%2Eau%2F%3Ftracking%3Dsk%3Ahet%3Ask%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=SEP07_endtext_Future&_m=EXT |
From: Elliott S. <ire...@gm...> - 2007-09-30 03:02:31
|
I am attempting to install Dev-C++ on my Windows XP machine using the automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems getting it to install into the directory I want it to. The default directory is "C:\Dev-Cpp", but I would like it to install into the "C:\Program Files" directory. However, when I try to do this, I get an error saying "Installation directory cannot contain ' '. Only letters, numbers, and ':-_\' are allowed." which gets in the way of my installing it where I want it. I could just install it in the default location, but I prefer to keep my root directory clean of specific applications, or I could move it after installing it, but I really don't want to go into the registry to fix everything. So if I can't get it to install nicely I am more likely just use MSVC instead. Thanks for all assistance in advance. -- Elliott Slaughter "Any road followed precisely to its end leads precisely nowhere." - Frank Herbert |
From: Younes O. <ou...@ei...> - 2007-09-29 18:29:55
|
Hi Llyod, Without commenting your implementation of a 3D Array, I don't see any issue with the line of code you pointed in your e-mail. I have tried the same piece of code under RedHat and it doesn't crash. Have a nice evening Younes On Fri, 2007-09-28 at 13:53 +0530, Lloyd wrote: > Hi , > > I have declared a structure like this... > > struct structSip > { > int32 sip; > struct structDip > { > int32 dip; > vector<SessionListRaw> sDetails; > }; > > vector<structDip> vectDip; > }; > > vector<structSip> vectSip; > > Then tried to insert some data like this > > SessionListRaw VectorNode; > > vectSip.reserve(1); > vectSip[0].sip=11; > vectSip[0].vectDip.reserve(1); > vectSip[0].vectDip[0].dip=12; //here the program crashes with the > error:- glibc detected corrupted doubly linked list > vectSip[0].vectDip[0].sDetails.push_back(VectorNode); > > What could be the reason? can't I use a vector like this to form a > 3dimensional array effect? > > Thanks, > Lloyd > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users -- Younes |
From: Chris M. <lor...@gm...> - 2007-09-28 15:26:32
|
On 9/28/07, Younes Ouadi <ou...@em...> wrote: > On Thu, 2007-09-27 at 20:42 -0700, Chris Miller wrote: > > On 9/27/07, Per Westermark <pw...@ia...> wrote: > > I've always been told to never trust anything to clean up your memory > > for you. It'll probably leave me to clean up a lot of memory when I > > don't need to, but learning how to deal with memory, with particular > > regards to scope and when things come in and out of scope, will never > > hurt IMHO. > > > Chris, > > We are talking here about something basic: modern OS (UNIX, Linux, > Windows ...) insures getting back memory allocated to a process once > this process is over. > > Don't confuse this fact with the fact that memory leak is one of the > issues that C and C++ developers should take seriously. Memory leak is > the fact that a process allocates memory dynamically and left it behind > without releasing it and this while the process is still running. This > means that while the process is still running, it takes memory from the > OS and waste it. Understood. > However, once the process is over, modern OS take back this memory. This > is not the case of Embedded OS since these later do not enjoy the same > conditions like the non Embedded OS. Makes sense. > Now, let me highlight the issue mentioned by /pwm. There are some > resources that the OS cannot get back or cannot get back easily. Let us > mention here: > * a process that creates a temporary file and, by design, this process > should delete this file before it ends. If this process doesn't do so, > the OS cannot do it in its place. And here come up the importance of the > concept of destructor. It can be used by a given application to release > this kind of resources since the compiler insures calling a class > destructor while releasing objects of this class > * a process that opens a socket should close it properly before it ends. > Otherwise, it will stay in the OS for a while before that this later > release it which is not a good behavior of the process. Okay. -- Registered Linux Addict #431495 If You Know What's Good For You, You'll Install Linux John 3:16! |
From: Lloyd <ll...@cd...> - 2007-09-28 08:14:36
|
Hi , I have declared a structure like this... struct structSip { int32 sip; struct structDip { int32 dip; vector<SessionListRaw> sDetails; }; vector<structDip> vectDip; }; vector<structSip> vectSip; Then tried to insert some data like this SessionListRaw VectorNode; vectSip.reserve(1); vectSip[0].sip=11; vectSip[0].vectDip.reserve(1); vectSip[0].vectDip[0].dip=12; //here the program crashes with the error:- glibc detected corrupted doubly linked list vectSip[0].vectDip[0].sDetails.push_back(VectorNode); What could be the reason? can't I use a vector like this to form a 3dimensional array effect? Thanks, Lloyd ______________________________________ Scanned and protected by Email scanner |
From: Jonathan W. <jon...@gm...> - 2007-09-28 07:24:18
|
I second Per: the browser will only ask for what it wants, and you cannot sent it anything else, the point of the server being to _serve_ the browser the data it requests. For instance if you bere using a text-based browser, it would never ask for any images. In this case I guess you're using IE or Mozilla Firefox or some other normal browser. You should check the source the browser is seeing and check for any errors there (esp. whether the iamge2 tag is correct) Per:> Note that there are situations ... Hey that's smart ! and cool :D Jonathan On 9/28/07, Per Westermark <pw...@ia...> wrote: > > You have an apple that doesn't taste good. You ask what you should do > about your tongue to make the apple taste good. > > You can obviously not do anything in the server to get a client to request > things it isn't interested in. > > If the client supports keep-alive, it may request more items using the > same connection - but only if the client wants to. > > Note that there are situations when a server may send out an animaged gif > in an "infinite" number of blocks, to get the client to animate some form > of job progress of something performed in the server. > > /pwm > > On Thu, 27 Sep 2007, angel dario wrote: > > > > > > > > > From: sci...@ho...To: > dev...@li...Subject: RequestDate: Thu, 27 Sep 2007 > 11:16:06 -0600 > > > > > > > > Hi...I'm facing a little problem with a HTTP Request.I have a server > that sends out 2 images to a HTTP Client, but the HTTP Client is only > REQUESTING for 1.I use recv() function to see what the HTTP Client is > Requesting for and i get:GET /image.gif HTTP/1.1Host: > 10.143.23.160User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6Accept: image/png,*/*;q= > 0.5Accept-Language: en-us,en;q=0.5Accept-Encoding: > gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7Keep-Alive: > 300Connection: keep-aliveReferer: http://10.143.23.160/JavaHtml.htmlGET/JavaHtml.html HTTP/1.1Host: > 10.143.23.160User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6Accept: > text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 > ,text/plain;q=0.8,image/png,*/*;q=0.5Accept-Language: en-us,en;q= > 0.5Accept-Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=0.7 > ,*;q=0.7Keep-Alive: 300Connection: keep-aliv > eand i don't see GET /image2.gif HTTP/1.1This means that the HTTP Client > is only requesting for the .html file and only one image.What can i do so > that the HTTP client request whatever items i am sending? > > > > Explore the seven wonders of the world Learn more! > > _________________________________________________________________ > > News, entertainment and everything you care about at Live.com. Get it > now! > > http://www.live.com/getstarted.aspx > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Chris M. <lor...@gm...> - 2007-09-28 03:43:03
|
On 9/27/07, Per Westermark <pw...@ia...> wrote: > Only embedded-system operating systems should/may be unable to reclaim all > memory after a program/task has ended. > > However, there are other issues with not calling an object destructor. The > object may contain other resources that are not reclaimable by the OS. For > example, the object may use temporary files that should be removed by the > destructor. Or the object could control aspects of some hardware. I've always been told to never trust anything to clean up your memory for you. It'll probably leave me to clean up a lot of memory when I don't need to, but learning how to deal with memory, with particular regards to scope and when things come in and out of scope, will never hurt IMHO. -- Registered Linux Addict #431495 If You Know What's Good For You, You'll Install Linux John 3:16! |
From: Per W. <pw...@ia...> - 2007-09-28 00:11:40
|
Only embedded-system operating systems should/may be unable to reclaim all memory after a program/task has ended. However, there are other issues with not calling an object destructor. The object may contain other resources that are not reclaimable by the OS. For example, the object may use temporary files that should be removed by the destructor. Or the object could control aspects of some hardware. /pwm On Thu, 27 Sep 2007, Chris Miller wrote: > On 9/27/07, Younes Ouadi <ou...@ei...> wrote: > > Hello, > > > > The question to ask: is there a need to release the memory reserved for > > the singleton? In other words: > > * Does the singleton lives from the moment where is is created (the > > first call to newInstance()) till the end of your application (no need > > to release it)? > > * Or should it disappear before the end of the application (the related > > memory should be released)? > > > > If the answer is No, and this is my feeling, just forget about it. When > > your application will end, the system will get back its memory > > automatically. > > What planet are you living on? Can I move there? > > > If for any reason the answer is Yes, then add a member method to your > > class ('deleteInstance' for example) that will: > > * delete the singleton 'delete singleton;' > > * set the singleton to NULL: 'singleton = NULL;' (by the way, your can > > forget about 'instanceFlag' and test only on 'singleton' value: NULL > > means allocate, Not NULL, don't allocate) > > > > And call this method at the moment where you like to release the memory > > linked to the singleton. > > > > Nota Bena: don't mix allocate/free with new/delete. They are completely > > different and doesn't like each other. > > There are some collisions between them, yes. > > -- > Registered Linux Addict #431495 > If You Know What's Good For You, You'll Install Linux > John 3:16! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Per W. <pw...@ia...> - 2007-09-28 00:08:05
|
You have an apple that doesn't taste good. You ask what you should do about your tongue to make the apple taste good. You can obviously not do anything in the server to get a client to request things it isn't interested in. If the client supports keep-alive, it may request more items using the same connection - but only if the client wants to. Note that there are situations when a server may send out an animaged gif in an "infinite" number of blocks, to get the client to animate some form of job progress of something performed in the server. /pwm On Thu, 27 Sep 2007, angel dario wrote: > > > > From: sci...@ho...To: dev...@li...urceforge.n= etSubject: RequestDate: Thu, 27 Sep 2007 11:16:06 -0600 > > > > Hi...I'm facing a little problem with a HTTP Request.I have a server that= sends out 2 images to a HTTP Client, but the HTTP Client is only REQUESTIN= G for 1.I use recv() function to see what the HTTP Client is Requesting for= and i get:GET /image.gif HTTP/1.1Host: 10.143.23.160User-Agent: Mozilla/5.= 0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.= 0.0.6Accept: image/png,*/*;q=3D0.5Accept-Language: en-us,en;q=3D0.5Accept-E= ncoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7Keep= -Alive: 300Connection: keep-aliveReferer: http://10.143.23.160/JavaHtml.htm= lGET /JavaHtml.html HTTP/1.1Host: 10.143.23.160User-Agent: Mozilla/5.0 (Win= dows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6A= ccept: text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,tex= t/plain;q=3D0.8,image/png,*/*;q=3D0.5Accept-Language: en-us,en;q=3D0.5Accep= t-Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7K= eep-Alive: 300Connection: keep-aliveand i don't see GET /image2.gif HTTP/1.= 1This means that the HTTP Client is only requesting for the .html file and = only one image.What can i do so that the HTTP client request whatever items= i am sending? > > Explore the seven wonders of the world Learn more! > _________________________________________________________________ > News, entertainment and everything you care about at Live.com. Get it now= ! > http://www.live.com/getstarted.aspx |
From: Chris M. <lor...@gm...> - 2007-09-28 00:06:38
|
On 9/27/07, Younes Ouadi <ou...@ei...> wrote: > Hello, > > The question to ask: is there a need to release the memory reserved for > the singleton? In other words: > * Does the singleton lives from the moment where is is created (the > first call to newInstance()) till the end of your application (no need > to release it)? > * Or should it disappear before the end of the application (the related > memory should be released)? > > If the answer is No, and this is my feeling, just forget about it. When > your application will end, the system will get back its memory > automatically. What planet are you living on? Can I move there? > If for any reason the answer is Yes, then add a member method to your > class ('deleteInstance' for example) that will: > * delete the singleton 'delete singleton;' > * set the singleton to NULL: 'singleton = NULL;' (by the way, your can > forget about 'instanceFlag' and test only on 'singleton' value: NULL > means allocate, Not NULL, don't allocate) > > And call this method at the moment where you like to release the memory > linked to the singleton. > > Nota Bena: don't mix allocate/free with new/delete. They are completely > different and doesn't like each other. There are some collisions between them, yes. -- Registered Linux Addict #431495 If You Know What's Good For You, You'll Install Linux John 3:16! |
From: angel d. <sci...@ho...> - 2007-09-27 23:36:38
|
From: sci...@ho...To: dev...@li...= Subject: RequestDate: Thu, 27 Sep 2007 11:16:06 -0600 Hi...I'm facing a little problem with a HTTP Request.I have a server that s= ends out 2 images to a HTTP Client, but the HTTP Client is only REQUESTING = for 1.I use recv() function to see what the HTTP Client is Requesting for a= nd i get:GET /image.gif HTTP/1.1Host: 10.143.23.160User-Agent: Mozilla/5.0 = (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.= 0.6Accept: image/png,*/*;q=3D0.5Accept-Language: en-us,en;q=3D0.5Accept-Enc= oding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7Keep-A= live: 300Connection: keep-aliveReferer: http://10.143.23.160/JavaHtml.htmlG= ET /JavaHtml.html HTTP/1.1Host: 10.143.23.160User-Agent: Mozilla/5.0 (Windo= ws; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6Acc= ept: text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,text/= plain;q=3D0.8,image/png,*/*;q=3D0.5Accept-Language: en-us,en;q=3D0.5Accept-= Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7Kee= p-Alive: 300Connection: keep-aliveand i don't see GET /image2.gif HTTP/1.1T= his means that the HTTP Client is only requesting for the .html file and on= ly one image.What can i do so that the HTTP client request whatever items i= am sending? Explore the seven wonders of the world Learn more!=20 _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx= |
From: Younes O. <ou...@ei...> - 2007-09-27 19:27:12
|
Hello, The question to ask: is there a need to release the memory reserved for the singleton? In other words: * Does the singleton lives from the moment where is is created (the first call to newInstance()) till the end of your application (no need to release it)? * Or should it disappear before the end of the application (the related memory should be released)? If the answer is No, and this is my feeling, just forget about it. When your application will end, the system will get back its memory automatically. If for any reason the answer is Yes, then add a member method to your class ('deleteInstance' for example) that will: * delete the singleton 'delete singleton;' * set the singleton to NULL: 'singleton = NULL;' (by the way, your can forget about 'instanceFlag' and test only on 'singleton' value: NULL means allocate, Not NULL, don't allocate) And call this method at the moment where you like to release the memory linked to the singleton. Nota Bena: don't mix allocate/free with new/delete. They are completely different and doesn't like each other. Have a nice evening. Younes On Thu, 2007-09-27 at 08:09 -0700, Chris Miller wrote: > On 9/27/07, Laura Lozano <lau...@gm...> wrote: > > Hello, > > > > I have a question about the next implementation of the singleton patter, if > > I don't do "delete sc1" in main, is there a memory leak? the problem is > > that if I do in the destructor "delete single" it produces an infinite > > loop. > > I'm not speaking from experience, but just thinking aloud. > > You don't need to call delete in the destructor. Remember, a class is > literally just a bunch of locations in memory. If the destructor has > been called, delete has already been called (externally to the > destructor) as well. IIRC, it's your job to free all pointers to > locations in memory that are handled by the class in the destructor, > since those won't be freed automatically by delete. > > > How could I free the memory associated to the variable single? > > Perhaps use free(single)? I'm not sure, I know there are consequences > to mixing new/delete and malloc/free, but from my (rather limited) > knowledge I know that free() will just release memory back to the > system. > > > Thank you. > > > > class Singleton > > { > > > private: > > static bool instanceFlag; > > static Singleton *single; > > Singleton() > > { > > > //private constructor > > } > > public: > > static Singleton* getInstance(); > > void method(); > > ~Singleton() > > { > > instanceFlag = false; > > } > > }; > > > > bool Singleton::instanceFlag = false; > > Singleton* Singleton::single = NULL; > > Singleton* Singleton::getInstance() > > { > > if(! instanceFlag) > > { > > single = new Singleton(); > > instanceFlag = > true; > > return single; > > } > > else > > { > > return single; > > } > > } > > > > > void Singleton::method() > > { > > cout << "Method of the singleton class" << endl; > > } > > > > int main() > > { > > Singleton *sc1; > > sc1 = Singleton::getInstance(); > > sc1->method(); > > > > return 0; > > } > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: > > http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > -- Younes |
From: angel d. <sci...@ho...> - 2007-09-27 17:16:16
|
Hi... I'm facing a little problem with a HTTP Request. I have a server that sends out 2 images to a HTTP Client, but the HTTP Clie= nt is only REQUESTING for 1. I use recv() function to see what the HTTP Client is Requesting for and i g= et: GET /image.gif HTTP/1.1 Host: 10.143.23.160 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gec= ko/20070725 Firefox/2.0.0.6 Accept: image/png,*/*;q=3D0.5 Accept-Language: en-us,en;q=3D0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://10.143.23.160/JavaHtml.html GET /JavaHtml.html HTTP/1.1 Host: 10.143.23.160 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gec= ko/20070725 Firefox/2.0.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,te= xt/plain;q=3D0.8,image/png,*/*;q=3D0.5 Accept-Language: en-us,en;q=3D0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7 Keep-Alive: 300 Connection: keep-alive and i don't see GET /image2.gif HTTP/1.1 This means that the HTTP Client is only requesting for the .html file and o= nly one image. What can i do so that the HTTP client request whatever items i am sending? _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=3D7+wonders+world&mkt=3Den-US&form=3DQ= BRE= |
From: Chris M. <lor...@gm...> - 2007-09-27 16:38:36
|
On 9/27/07, Laura Lozano <lau...@gm...> wrote: > Hello, > > I have a question about the next implementation of the singleton patter, if > I don't do "delete sc1" in main, is there a memory leak? the problem is > that if I do in the destructor "delete single" it produces an infinite > loop. I'm not speaking from experience, but just thinking aloud. You don't need to call delete in the destructor. Remember, a class is literally just a bunch of locations in memory. If the destructor has been called, delete has already been called (externally to the destructor) as well. IIRC, it's your job to free all pointers to locations in memory that are handled by the class in the destructor, since those won't be freed automatically by delete. > How could I free the memory associated to the variable single? Perhaps use free(single)? I'm not sure, I know there are consequences to mixing new/delete and malloc/free, but from my (rather limited) knowledge I know that free() will just release memory back to the system. > Thank you. > > class Singleton > { > private: > static bool instanceFlag; > static Singleton *single; > Singleton() > { > //private constructor > } > public: > static Singleton* getInstance(); > void method(); > ~Singleton() > { > instanceFlag = false; > } > }; > > bool Singleton::instanceFlag = false; > Singleton* Singleton::single = NULL; > Singleton* Singleton::getInstance() > { > if(! instanceFlag) > { > single = new Singleton(); > instanceFlag = true; > return single; > } > else > { > return single; > } > } > > void Singleton::method() > { > cout << "Method of the singleton class" << endl; > } > > int main() > { > Singleton *sc1; > sc1 = Singleton::getInstance(); > sc1->method(); > > return 0; > } > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: > http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > -- Registered Linux Addict #431495 If You Know What's Good For You, You'll Install Linux John 3:16! |
From: Per W. <pw...@ia...> - 2007-09-27 16:34:30
|
Yes! /pwm On Thu, 27 Sep 2007, angel dario wrote: > Is it possible to build a program in Dev-C++ using Windows XP and be able to run it on Windows Vista? > > _________________________________________________________________ > Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us |
From: angel d. <sci...@ho...> - 2007-09-27 16:31:06
|
Is it possible to build a program in Dev-C++ using Windows XP and be able t= o run it on Windows Vista? _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Space= s. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=3Dcreate&wx_url=3D/friends.= aspx&mkt=3Den-us= |
From: Jonathan W. <jon...@gm...> - 2007-09-27 16:20:52
|
Hi, As far as I can tell, you are producing a deep copy of the vector. As Matheus pointed out, you should return copia, or have your function fill a vector passed by the caller. Apart from that, I can't see anything wrong. Maybe you should make sure you really want to copy every Resultado object, if not, a shallow copy of the vector would suffice ( copia->push_back(**it); ) HTH, Jonathan On 9/27/07, matheus ribeiro <mfr...@gm...> wrote: > > Uour code is very confusing, its not clear to me what youre doing. > Anyway, this will cause a memory leak, since youll lose the pointer to > copia and keep only the reference to it. Either return the allocated > pointer or pass the vector as an argument to the function. > > 2007/9/27, Laura Lozano <lau...@gm...>: > > Hello, > > > > Is this the best way to return a vector of Pointers that is an atribute > of a > > class?? I don't return the vector directly to avoid delete externaly the > > pointers Resultado*, because is an attribute of the class. > > > > vector<Resultado*>& ValidacionCruzadaEval::getResultados(){ > > vector<Resultado*>::const_iterator it; > > vector<Resultado*>* copia=new vector<Resultado*>; > > > > copia->reserve(resultados.size()); > > > > for(it=resultados.begin();it!=resultados.end();it++){ > > > > copia->push_back(new Resultado(**it)); > > > > } > > return *copia; > > > > } > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: > > http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: matheus r. <mfr...@gm...> - 2007-09-27 15:25:22
|
Uour code is very confusing, its not clear to me what youre doing. Anyway, this will cause a memory leak, since youll lose the pointer to copia and keep only the reference to it. Either return the allocated pointer or pass the vector as an argument to the function. 2007/9/27, Laura Lozano <lau...@gm...>: > Hello, > > Is this the best way to return a vector of Pointers that is an atribute of a > class?? I don't return the vector directly to avoid delete externaly the > pointers Resultado*, because is an attribute of the class. > > vector<Resultado*>& ValidacionCruzadaEval::getResultados(){ > vector<Resultado*>::const_iterator it; > vector<Resultado*>* copia=new vector<Resultado*>; > > copia->reserve(resultados.size()); > > for(it=resultados.begin();it!=resultados.end();it++){ > > copia->push_back(new Resultado(**it)); > > } > return *copia; > > } > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: > http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
From: Laura L. <lau...@gm...> - 2007-09-27 14:11:03
|
Hello, Is this the best way to return a vector of Pointers that is an atribute of a class?? I don't return the vector directly to avoid delete externaly the pointers Resultado*, because is an attribute of the class. vector<Resultado*>& ValidacionCruzadaEval::getResultados(){ vector<Resultado*>::const_iterator it; vector<Resultado*>* copia=new vector<Resultado*>; copia->reserve(resultados.size()); for(it=resultados.begin();it!=resultados.end();it++){ copia->push_back(new Resultado(**it)); } return *copia; } |