Type: Posts; User: nsh123
Search took 0.01 seconds.
October 6th, 2004, 03:31 AM
We have a memory leak in our application.
I have instrumented the application code such that every malloc (size and address), every realloc new size and address) and every free(address) is logged...
Actually this question is not strictly .NET but relating to the .NET environment.
I have a library that efficiently implements heap management.
I want to use this library in my...
I know its easy.
I wanted to make sure i do not reinvent the wheel. Especially when it not going to do any good in performance.
Windows should be fine.
Does the moving of the thread imply no non-visual C++ support to copy files ?
I am writing a C console application in .NET 2003 IDE.
Is there any function to copy file(s)
I have included "direct.h" header file but it does not seem to support copying file.
Should I assume this is not possible?
I had considered having another program which itself alllocates some memory and does nothing with it.
But the problem is this would actually allocate...
Forgot to mention, I am working on MS Windows 2000 Advanced Server.
How can I restrict the avaiable memory for an application?
I am doing some kind of scalability testing.
March 2nd, 2004, 09:22 AM
C++ int main() is ok. As we are dicussing C, it is strictly int main(void).
March 2nd, 2004, 03:30 AM
I dont think there is some standard for how the code is generated for a switch case stmt.
If you have a if else if block and if you keep the more probable conditions ahead then it...
March 2nd, 2004, 12:38 AM
To be precise the problem is in the statement
increment( *pj );
You are passing some temporary variable to the increment function.
And n (in increment)...
March 1st, 2004, 11:56 AM
IMO this depends on your OS. If your OS does write some machine id( if there exists one at all) then it is possible. Win and Linux both do not write any such information.
March 1st, 2004, 10:18 AM
just a thought.
Is it possible to have a destructor for the defined types.
February 16th, 2004, 02:54 AM
with the code you posted, i dont think they get initialized.
Also looking at the variable it seems that they are to be initialized once and for all.
And thus in that sense it does improve speed,...
February 15th, 2004, 01:25 AM
Are you saying that by ANSI C it is correct that float * and int * can take different sizes?
IMO then using void pointers will make little sense.
February 15th, 2004, 01:16 AM
One open source comes with vncviewer/winvnc. This is an ATnT developed code.
The DES code is a part of this remote control application.
February 15th, 2004, 01:13 AM
doesnt getc(fptr) eat up one character from the file (similar to fgetc)
If it doesnt that is great way of avoiding something like ungetc.
fgets followed by sscanf is the better approach.
February 15th, 2004, 12:52 AM
Use memory for storing marices only if:
1. Efficiency is a big concern
2. Your matrix is of small dimensions and you do not have too many matrices to store.
February 9th, 2004, 04:23 AM
Are you suggesting to use something like
extern const int x ?
To be very precise my problem is because I compile in stages
first main.o is created
then abc.o is created
both have space...
February 9th, 2004, 03:35 AM
Yes I did
One more finding
I am using C. Also using constants are allowed as per the new C standard
The other thing i just found
is that if i use #defines instead of const int things work...
February 9th, 2004, 03:20 AM
I have three files say
#includes common_defs.h as well as common_defs.h
contains the main function
February 4th, 2004, 01:52 AM
Cornedbees subconcience + Your conscious = great brain !!!
Anyway thank you for the links
February 4th, 2004, 01:45 AM
I solved the problem. Actually I was talking w.r.t C (sorry for not mentioning)
February 3rd, 2004, 09:52 AM
How do i print real and imaginary values in _Complex type variable ?
Thanks in advance
February 2nd, 2004, 02:23 PM
'\b' was the closest, but I had tried that before posting. Doesnot put the cursor a line up.
Cornedbee, I would like to know why you wrote \h unless even this mail had a typo. ;)
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.