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...
Tyler Littlefield
tyler@...
Jan 1, 2009 8:44 pm
69014
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...
Tyler Littlefield
tyler@...
Jan 1, 2009 8:51 pm
69015
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...
Niranjan Kulkarni
guruofcpp@...
Jan 1, 2009 8:58 pm
69016
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,...
Tyler Littlefield
tyler@...
Jan 1, 2009 9:28 pm
69017
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...
Tyler Littlefield
tyler@...
Jan 1, 2009 10:25 pm
69018
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,...
... 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...
Christopher Coale
chris95219@...
Jan 2, 2009 4:48 am
69021
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...
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...
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...
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:...
Tyler Littlefield
tyler@...
Jan 6, 2009 12:34 am
69026
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...
... 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...
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; ...
Tyler Littlefield
tyler@...
Jan 6, 2009 4:14 am
69029
... typedef struct { char uflag; int length; } header; Is somewhat of an insufficient example. But here is how someone might do something malicious. Let's...
hi, thanks all, but can some1 sum it up in a more 'noobish' way? :D im using GCC 4.0 as compiler, under OS X using IDE XCode. The compiler is integrated. so...
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...
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....
... 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. ...
Christopher Coale
chris95219@...
Jan 6, 2009 9:25 pm
69035
... 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...
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...
lukas
xoliva02@...
Jan 7, 2009 9:55 am
69037
... Paul Herring, one of this group's moderators, runs another group called 'softwarequality' (http://tech.groups.yahoo.com/group/softwarequality/). You should...
Recently we studied the software testing course and I personally like the "A Practitioner's Guide to Software Test Design" by Lee CopeLand. Regards Abdullah ...
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...
... 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 ...
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...