Type: Posts; User: hi1
Search took 0.01 seconds.
April 15th, 2010, 06:52 AM
Have you already success?
April 7th, 2010, 10:41 PM
for any kind of Free UML CASE Tools you'd visit http://case-tools.org/free.html
April 7th, 2010, 10:39 PM
yes... try this http://case-tools.org/
February 19th, 2010, 09:52 AM
I could not find a proper section for posting, so I'm posting in this C++ one...
I'm writing a Makefile, and there is a behavior that I don't understand. Here's what I'm doing:
February 4th, 2010, 12:27 AM
You are right again. I can't rely on that test.
This is why i received partial body on Windows.
On Linux the flag "MSG_WAITALL" is available, but this does not seem a reliable solution.
February 3rd, 2010, 11:35 PM
So this turned out to be a problem with the socket API, and has nothing to do with fwrite.
I've tried to increase the receive socket buffer size with "setsockopt", but i still receive partial body....
February 3rd, 2010, 01:19 PM
You were right, i get access violation trying to do "puts(parsed_request->body+100000);".
So now i have to recheck all the program logic that fills the buffer...
#define _READ_CHUNK 512...
February 2nd, 2010, 07:10 PM
You are right about that.
But i expected that even if there was a mismatch between the buffer size and the "content_length" value the write operation should at least start and then throw an error,...
February 2nd, 2010, 06:14 PM
Well, i think that if the whole thing works ok on linux (no segm.faults thrown and the file is written correctly), then the logic must be correct (body buffer must be of the correct size).
February 2nd, 2010, 05:59 PM
Yes i've thinked of it too, but the test case i've used for testing is build so that the content_length matches exactly the length of the body buffer.
So you can assume that this condition is always...
February 2nd, 2010, 03:05 PM
Boy, it's just what i've posted:
If fwrite succeed errno remains 0 and perror outputs "No error",
otherwise errno!=0 and perror output something meaningful.
February 2nd, 2010, 02:00 PM
No, perror always output "Invalid Argument" (that is, errno 22).
I've also disabled multi-threading so there can't be any interference with other threads...
"content_length" is of "unsigned int"...
February 2nd, 2010, 12:31 PM
Ok, now i've added the checks.
I've omitted them since they did not seem relevant to me.
February 2nd, 2010, 12:13 PM
That call is for debug purpose only.
I'll remove that once i've fixed the issue.
February 2nd, 2010, 04:09 AM
I already tried that. Still get ERRNO==22. :-(
BTW, the correct way should be the first one. See http://www.opengroup.org/onlinepubs/009695399/functions/fwrite.html):
I mean to write...
February 2nd, 2010, 02:33 AM
On linux the same call to fwrite works correctly (errno==0),
on windows i get ERRNO==22 if the "size" parameter is somewhat big (e.g. "103429"). :-/
see the code:
// first i open the file...
December 9th, 2009, 10:11 AM
I have the same problem when I open dialog with WebBrowser control in it. The dialog is NOT in another thread. I don't know is this a very correct sollution, but I solved it with this code in the...
Another one easy solution :
conversion to string:
std::string toString(const T& t)
stream << t;
January 7th, 2009, 10:16 AM
most important information first:
* Paid: No
* Type: Very Small Program (I guess less than 15 minutes for an experienced programmer)
* Requirements: Should run on Windows...
December 23rd, 2008, 05:13 PM
I hope this is the right area to post this.
I was wondering if anyone of you could write a little program for me that changes the System Volume by mouse movements, i.e. moving the mouse...
November 22nd, 2008, 04:15 AM
Boy, you are right!
Maybe i've made confusion between Java and C++ having studied both in the same time.
If only the compiler had warned me about constructor chaining...
EDIT: now everything...
November 22nd, 2008, 02:16 AM
Hello everybody, since last year i've been developing an SDL-based library for videogames,
but lately i'm stuck on a problem that concerns (i think) inheritance and copy costructors/assignment...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!