@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10



Comments:

<0> csboy ok, now the program is stopped where the error occurred
<0> so go look and find out why
<1> it opens ***embly
<1> this is the line: test dword ptr [ecx],eax ; ...probe it
<0> so, go open the call stack
<0> and go up one level to see how to go to where you are
<1> christ, tell me how please and i will leave you alone after
<0> I HAVEN'T USED THE ****ING PROGRAM FOR 4 YEARS
<0> IT'S A PIECE OF ****
<0> LOOK AROUND
<0> use the help... look for call stack
<1> $$$00001() line 79
<1> mainCRTStartup() line 338 + 17 bytes
<1> KERNEL32! 7c816d4f()
<1> wtf does that mean
<2> Ashe` ?



<1> that's the output of the call stack
<0> most likely, you're trying to debug a program that was compiled without debug symbols
<1> christ
<0> that's the ONLY line in the call stack?
<1> those 3
<0> did you compile this program?
<0> or build it
<1> build
<0> did you use release or debug for the build?
<1> debug
<0> well, you've really trashed the stack then.... so go put a breakpoint on the line you thnk is causing the problem (the memcpy)
<0> and start the program again
<1> k
<1> dammit, same error
<1> oops, 1 sec
<3> try memmove & strncpy?
<1> the breakpoints do not seem to be having effect
<1> i still get overflow
<4> Why bother with C functions
<0> then maybe it's blowing up before you get there
<0> (seems that it is)
<1> i'm putting it on the first line of main, which is a read from a command line arg
<3> csboy: src & dest are overlapping?
<0> well, pretty much the only stuff that happens before main is the constructors for your global stuff
<5> peterhu
<5> #VVVVC++
<1> what is "watch"
<1> i am getting a strange error there
<0> CX0030 cannot evaluate.....
<1> in lower right panel in debug mode
<1> CXX0017: Error: symbol "tsd" not found
<1> does that help me at all
<0> why did you ask it to watch tsd ?
<5> peterhu, never mind
<1> i didn't know i did
<0> it may be left over from someone else trying to debug this
<1> if the stack is overflowing, why would i not want to increase its size
<1> i am using huge 3d arrays
<0> how huge?
<1> 622,858 bytes is just one
<3> how many are there?
<0> and you're making these as local variables?
<1> no, they were global first. i moved them into a cl***.
<1> this **** worked when they were global
<0> moving them into a cl*** doesn't necessarily make them on the stack
<6> can cash out many bins.paypal wu,bank transfer and a lot of other **** msg me for a deal
<1> so why then would they crash as members
<0> csboy are you instantiating these cl***es as local variables?
<1> i am instantiating this cl*** in main
<0> go to your project right click, get properties, go to C/C++ andvanced tab
<0> how many arrays does this cl*** have?
<0> also, what OS are you running this on? how much memory does it have?
<1> xp, i think 512mb
<1> yep 512
<0> ok, are you there in the project/properties?
<0> crap, I don't recall /F being stacksize for the older compilers
<1> i am in project settings ... C/C++
<1> properties didn't have a c/C++ tab
<1> i see project options
<1> is that what i am looking for
<1> to increase stack size



<0> I said right click on the project name in the browser, select properties (last think on the drop down list)
<1> if i do that i only see "general", "inputs", and "outputs" tabs
<0> what's in general (they change this every time they release a new one, btw)
<1> "Project file:" and "Last modified"
<0> ****
<0> ancient piece of crap
<1> The /Fnumber option sets the program stack size to a specified number of bytes. If you dont specify this option, a stack size of 1 MB is used by default.
<0> csboy yes, I'm trying to get you to the place to put that
<1> i think i'm there
<1> "project options"
<1> i see a bunch of those switches
<0> there should be a place to do "advanced" so you can type stuff in
<0> or "command line"
<1> this **** i see in c/c++ is /nologo /Zp2 /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D
<1> is that what i am looking for
<0> you're looking for something you can MODIFY
<1> yes, i can type into that fiedl
<7> Kia Ora
<0> then add at the end /F 4000000
<0> and you STILL haven't answered how many of these arrays do you have?
<1> 17
<0> and they're eadh .6megabyters?
<0> err, each
<1> yeah
<1> and even with that option i still get stack overflow
<0> and you want them all as local variables?
<8> yes!
<8> I recaptured my nick finally!
<9> heh ?
<1> i want all of them as member variable
<7> now just hang onto it
<0> umm, how much space is all that going to take?
<1> hmm
<0> because local variables (member or not) take up stack space
<1> i would say at least a few megs
<0> 10+ megs
<0> do the math
<0> you're waaaaay outside normal programs here
<5> int n[2000000000];
<1> yeah, its for an acoustic detection algorithm for the army ... we have acoustic sensors mounted on top of hummers that triangulate mortar blasts
<0> csboy is there some reason you didn't want to allocate these from the heap? but instead want them inside your cl***?
<1> and the data that gets pumped in is pretty heavy
<4> Guess the army cannot hire real programmers
<0> or get real software development kits
<1> sorry i don't know what the difference is
<0> one is they take up stack space (putting the arrays directly in the cl***), the other just takes up room for a pointer or so in the cl*** and the rest comes from allocated memory
<0> csboy how long have you been writing C++?
<0> or programming at all??
<4> Looks like C so far
<1> i've been programming for 2 years professionally, all in java.
<1> the last time i touched c++ was in adv. data structures
<4> Vector => no problem
<0> oh god, and someone ***igned you to a C++ refactoring job?
<5> I'll let my cousin know he can sleep easy at night
<4> (std::vector, that is)
<10> Ah well - only 2 years, there's still time to save your mind
<10> If you're forced to work in Java, you *must* learn and use another language. It's the only way to stop permanent damage to your real CS ability
<0> it's a good thing we're not at war... I think I could easily charge (and get it to stick) him/her w/ treason
<8> we are at war
<8> remember?
<0> Noidea I haven't seen, nor heard of, a congressional declaration of war
<8> hmmm, yeah, I guess that's true.
<8> I forget what they did to get around that.
<5> Well
<5> We don't really have anyone to declare one against
<5> Be nice if we did, but I think our enemies figured that out
<7> no one to shoot your guns at???
<5> Oh, we have plenty of those
<5> But you don't declare war on each of them
<5> And it's difficult to see any overarching responsible party
<7> nah - just go and shoot them
<5> Even the Al Qaeda leadership is hardly an authority over all terrorists conducting operations in Iraq, Afghanistan, or allied nations
<5> Part of what makes those dudes terrorists is that they refuse to fly a flag


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#mirc
root inode is not a directory
#teens
configure spf with fc5
reading the error_log
WHAT WENT FROM 405 TO 625 LINES? dalnet
purger mailq
t0rque
purger mailq
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes