Hello list, I've got a quick question. I have a function that is being called numerous times in a loop. Before this function is called, things seem to work...
69014
Tyler Littlefield
tyler@...
Jan 1, 2009 8:51 pm
P.S. I've ran gdb on this and traced it through about 30 loops. I watched the while loop for a bit, then dropped down in to the pole function and watched that...
69015
Niranjan Kulkarni
guruofcpp@...
Jan 1, 2009 8:58 pm
I think you should check for the mode you are opening the log file to write. Are you opening this file in append mode to write? - Niranjan. ... From: Tyler...
69016
Tyler Littlefield
tyler@...
Jan 1, 2009 9:28 pm
it shouldn't set it to 0. the program isn't closed until after the logs get written. ... From: Niranjan Kulkarni To: c-prog@yahoogroups.com Sent: Thursday,...
69017
Tyler Littlefield
tyler@...
Jan 1, 2009 10:25 pm
p.s. A friend pointed out the problem with me creating the string and then reassigning to the pointer... I'm to used to c#, wasn't thinking. I fixed it, and it...
69018
Tyler Littlefield
tyler@...
Jan 1, 2009 11:07 pm
hello, sorry for all the posts on this topic. I finally got tweaking on the code some more and fixed the problem. everything is working great. Thanks chris,...
69019
Rick
thefirstrepa...
Jan 2, 2009 12:08 am
... Someone has had too much coffee ;-) ~Rick...
69020
Christopher Coale
chris95219@...
Jan 2, 2009 4:48 am
... I think I should point this out really quick. You aren't setting your "msg" string correctly. Whenever the compiler sees a string literal, "New connection...
69021
mandip_89
Jan 3, 2009 8:42 pm
only read the book which name is starting C-Languge.i was learnig this languge from this type of book very well and m.t.savalia the auther of my book. yes,i...
69022
Gopi Krishna Komanduri
gopikomanduri
Jan 4, 2009 2:31 pm
Hi folks, I have an issue with anonymous pipes.. Steps I followed : Created a Pipe with 2 Handles .. " SECURITY_ATTRIBUTES childstdoutattr; ...
69023
Jos Timanta Tarigan
jos_t_tarigan
Jan 6, 2009 12:07 am
Hi, i notice this line: #pragma pack(push,1) struct TGAHeader { bla bla bla... }; #pragma pack(pop) what is the definition of pragma exatly? i use this struct...
69024
Brett McCoy
smartandkewl
Jan 6, 2009 12:22 am
On Mon, Jan 5, 2009 at 7:07 PM, Jos Timanta Tarigan ... #pragma is a directive for implementation specific information for the compiler. What compiler and what...
69025
Tyler Littlefield
tyler@...
Jan 6, 2009 12:34 am
push is a m$ thing, though I'm not sure what it is. Thanks, Tyler Littlefield http://tysdomain.com ... From: Brett McCoy To: c-prog@yahoogroups.com Sent:...
69026
Paul Herring
shabble
Jan 6, 2009 3:11 am
On Tue, Jan 6, 2009 at 12:07 AM, Jos Timanta Tarigan ... It's for compiler specific features. From the context (it's using something called pack(), and it's...
69027
Thomas Hruska
shininglightpro
Jan 6, 2009 3:58 am
... pack() is a VC++ specific #pragma directive. It declares the padding of the structure's variables. Assuming a 32-bit target, VC++ will pad each variable...
69028
Tyler Littlefield
tyler@...
Jan 6, 2009 4:14 am
I'm curious here. I've heard about exploits from struct loading, not checking buffers. Say the struct looked something like this: typedef struct { char uflag; ...
69029
Thomas Hruska
shininglightpro
Jan 6, 2009 6:18 am
... typedef struct { char uflag; int length; } header; Is somewhat of an insufficient example. But here is how someone might do something malicious. Let's...
69030
Jos Timanta Tarigan
jos_t_tarigan
Jan 6, 2009 1:13 pm
hi, thanks all, but can some1 sum it up in a more 'noobish39; way? :D im using GCC 4.0 as compiler, under OS X using IDE XCode. The compiler is integrated. so...
69031
Paul Herring
shabble
Jan 6, 2009 1:33 pm
On Tue, Jan 6, 2009 at 1:13 PM, Jos Timanta Tarigan ... To pick one implementation: Every item in the struct takes up 1, 2 or 4 bytes (more if there's an array...
69032
gsronline
Jan 6, 2009 2:13 pm
Hi I am converting an application from VS6 to VS7 (vs2003). There are some code which are asm. When I am trying to compile the files, its throwing errors....
69033
Jos Timanta Tarigan
jos_t_tarigan
Jan 6, 2009 5:21 pm
... just find codes on the net, try to rewrite it (my own way) :) thanks for the answers, really helpfull regards Jos Timanta Tarigan...
69034
Christopher Coale
chris95219@...
Jan 6, 2009 9:25 pm
... Visual C++ doesn't use the AT&T assembler that GCC uses. When you inline ASM in Visual C++, it is using MASM, and you have to type the "__asm" keyword. ...
69035
Thomas Hruska
shininglightpro
Jan 7, 2009 4:59 am
... I'm pretty certain there is no MASM interaction with inline assembler. Especially since I have a bunch of it here on my computer and have not seen MASM...
69036
lukas
xoliva02@...
Jan 7, 2009 9:55 am
Hello, I would like to get into software testing so I search for some source of information. I searched Google for some of them (eg. Ron Patton, Software...
69037
Thomas Hruska
shininglightpro
Jan 7, 2009 1:36 pm
... Paul Herring, one of this group's moderators, runs another group called 'softwarequality' (http://tech.groups.yahoo.com/group/softwarequality/). You should...
69038
Mirza Abdullah Jan
jan576pk
Jan 7, 2009 1:47 pm
Recently we studied the software testing course and I personally like the "A Practitioner39;s Guide to Software Test Design" by Lee CopeLand. Regards Abdullah ...
69039
John Matthews
johnmatthews...
Jan 7, 2009 3:09 pm
Someone I used to work with was keen on test driven development: http://en.wikipedia.org/wiki/Test-driven_development Haven't used it myself or read any of the...
69040
David Hamill
dc_hamill
Jan 7, 2009 3:25 pm
... The problem with this is that you don't know what to test for until you've written the code. Maybe some much more organised people than me can specify ...
69041
Paul Herring
shabble
Jan 7, 2009 5:23 pm
On Wed, Jan 7, 2009 at 3:25 PM, David Hamill <david@...> wrote: [...] ... If you're employed to write software, then this is exactly what you're ...
69042
Jos Timanta Tarigan
jos_t_tarigan
Jan 7, 2009 11:14 pm
Hi, Im trying to make a function that return a 2D array that size are dependent to the other parameter eg: Color[][] scan( width, height) so the method will...