| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Comments:
<0> =P <1> Atleast he isn't a cl***ic case. Not that I have seen many of them. <2> http://msdn2.microsoft.com/en-us/library/y6ec19ye(VS.80).aspx <2> that's the only advice we can give him from the code he's pasted. <1> It is true that some people have a bloated ego, but that could be largely due to the fact that they haven't had much exposure. <2> if he wanted more pertinent help <2> he should have put something more useful up. <2> And, as far as the people in here who are helping seeming hateful, or pushy <2> a lot of us have been doing this for years <2> like 10 years for me, I think. <0> Did he paste any code? o.o; <1> doing what? Coding or helping? <2> helping. <2> so many of the people who come in here refuse to help you help them <2> they insist they know more than you as they ask you for help
<1> You are only 24 years old. You mean you have been helping since 14 yrs age? <2> they refuse to ansywer simple questions. <2> I'm 28 <2> almost 29 <1> Developers always have big egos <1> I see <3> 14's not that young. <2> and, a lot of people think we OWE them help. <4> NineVolt: that's not what they said when I got arrested for having *** with one :( <1> And they get easily hurt if criticised. <3> heh <2> after awhile, having to beat information out of people <2> to help them <2> gets old. <1> Noidea take it as a teaching exercise <2> again, I've been doing this 10 years <2> vawjrs been around a long time too. <0> Buddha would be proud. <1> Hey MrAshe how was the trip to siberia? <2> my patience with people who refuse to answer simple questions wore out long ago. <0> And now for something completely different. <4> Which trip to Siberia? <1> Weren't you in Armenia etc.? <4> Yes, like.. 4 months ago? Maybe more <2> anyway <2> off to lunch. <4> And Siberia is not exactly close to Armenia <1> All I meant was, how was your trip to all those WONDERFUL places on the way from Nice to Belgium? <4> I'm on holiday <5> step 1: orlando airport <5> free wireless, that's a rarity <4> Geek. <4> I have free wireless access everywhere <5> nerd <4> All hail to the company's corporate credit card <4> (and GPRS) <4> I have some ugly bug <4> I add 2 things to a vector <4> I don't have any clear or erase or anything <4> But later, if I try to display its length <4> It's 0 <4> Heheh <4> (and the vector's address is right) <5> how did you add ? <4> Simple push_back <4> If I display the length after the pushback it's fine <5> by length you mean size() <4> But in another function where I do a find, it's empty <4> Yup <4> pushing, 69258624 - 69258712 new length: 2 <4> 69258624 - 69258712 current length: 0 <4> Same this, same vector <4> :/ <5> what are those numbers: <5> ? <4> this and &vec <5> where is this vector - on the stack? <4> Nope, heap <5> shrug, need code <4> Code of what? <5> everything
<4> There's not much more than a push and a find, dealing with that member <4> Actually, it's the only thing there is heheh <4> I just did a find on the vector name <5> maybe it's being destroyed, and another is being allocated in the same place? <4> (find in files that is) <5> how is the vector allocated? <4> With its std::allocator? heheh <5> you said it's on the heap - did you new it? <5> or is it just a member <4> It's on the heap cause the instance that has the vector as a member is on the heap <5> gotcha <4> Why would I new a vector <5> *shrug* thats why I asked ;) <5> umm <4> And the instance is a singleton <5> is anything calling operator= on that object? <5> ah <4> (and non_copyable) <5> is this all in the same thread? <4> Ehm yeah <5> well what's going on in the program after you push stuff onto the vector? <4> Other completely unrelated stuff, then at some point I do this find() and the vector is empty <4> The push is the last line of some method, and the display of the length the first line before the find() (in another method) <4> And it's like the only methods of that cl*** <5> *shrug* set a memory breakpoint on the member, and see what hits it <5> on the vector member <4> Hm how do you set a memory breakpoint? <5> or dig internally and set a breakpoint on the _Size (guessing at the name) member of the vector <5> in vs2k5? I don't remember <4> 2k3 <5> still don't remember <4> Watch? <5> pretty sure it's possible though <4> It's probably a _Last - _First, not a _Size <5> yeah, maybe <5> (maybe re: Watch) <5> and yeah possibly that for size <5> so Watch the _Last member <5> there should be a way to trigger a breakpoint when the data is read/written <4> I can set a watch, dunno how to set a breakpoint for it though <4> Don't see any option either <5> hm, let me see if i can try <1> Just step through the code after the pushes until it gets emptied again - duh <5> you could do that <5> or you could just trigger a breakpoint when it gets modified <4> That's what I'm trying to set, a breakpoint that breaks when it's modified <4> Stepping through is not doable <5> aha <5> Debug Windows > Breakpoints <5> Add Data Breakpoint <5> (this is in 2k5, might be slightly different in 2k3) <4> Breaks when I add, then never again <4> Heheh <5> in 2k5 its _Mylast <4> Well, it works when I do the push_back <6> rdragon, dude i hate to say it but you were right, ac++ is a good book after all :/ <5> |Serpent you're welcome <6> :D <5> and of course I was right <5> but hmm <5> well <5> break just before find() and inspect the vector - did _Last change? <5> but a breakpoint on _First, too <5> size() is implemented, in 2k5, as: <5> return (_Myfirst == 0 ? 0 : _Mylast - _Myfirst) <5> so maybe _Myfirst is 0 <5> (maybe it got changed to 0) <5> or just step into size() and see that the first and last pointers are valid <4> Well, both last and first are null ;) <4> (when I do the find) <5> well, that could be a problem <4> But I get a breakpoint only when I push_back <4> I noticed that was a problem ;) <5> hehe
Return to
#c++ or Go to some related
logs:
#teens tomcat mydsl #AllNiteCafe #linux fios residential only #mirc armani-Ghost at malta
users undernet.org Ceeky Logs
#networking
|
|