[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reproducible cygwin memory problems
From: |
emacs user |
Subject: |
Re: reproducible cygwin memory problems |
Date: |
Wed, 09 Aug 2006 00:37:21 -0400 |
From: Eli Zaretskii <address@hidden>
> Fclear_image_cache and where exactly, so that it will print out some
message
> saying that this code is executed? If you can, please be very explicit,
I
> have no c-programming experience whatsoever.
First, the whole body of that function is inside an if clause; I'd
like to know whether the body is executed or the condition evaluates
to zero and the code is not run.
Next, there's a call to free_image in a loop; I'd like to know whether
it is called, and how many times.
Inserting the following line
fprintf(stderr, "I am here\n");
inside a code block will show whether that block is executed.
Feel free to ask more questions if the above is not clear enough.
adding these calls:
DEFUN ("clear-image-cache", Fclear_image_cache, Sclear_image_cache,
0, 1, 0,
doc: /* Clear the image cache of FRAME.
FRAME nil or omitted means use the selected frame.
FRAME t means clear the image caches of all frames. */)
(frame)
Lisp_Object frame;
{
if (EQ (frame, Qt))
{
Lisp_Object tail;
fprintf(stderr, "I am here1\n");
FOR_EACH_FRAME (tail, frame)
if (FRAME_WINDOW_P (XFRAME (frame)))
fprintf(stderr, "I am here2\n");
clear_image_cache (XFRAME (frame), 1);
}
else
fprintf(stderr, "I am here3\n");
clear_image_cache (check_x_frame (frame), 1);
return Qnil;
}
results in
I am here1
I am here2
every time I do M-:(clear-image-cache t)
??
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
- Re: reproducible cygwin memory problems, (continued)
- Re: reproducible cygwin memory problems, Stefan Monnier, 2006/08/07
- Re: reproducible cygwin memory problems, Eli Zaretskii, 2006/08/07
- Re: reproducible cygwin memory problems, emacs user, 2006/08/07
- Re: reproducible cygwin memory problems, emacs user, 2006/08/05
- Re: reproducible cygwin memory problems: SOLVED?, emacs user, 2006/08/06
- Re: reproducible cygwin memory problems: SOLVED?, Stefan Monnier, 2006/08/07
Re: reproducible cygwin memory problems, emacs user, 2006/08/08
Re: reproducible cygwin memory problems, emacs user, 2006/08/19