Home » Language IDEs » C / C++ IDE (CDT) » Hung when saving files
Hung when saving files [message #106370] |
Tue, 15 June 2004 11:11  |
Eclipse User |
|
|
|
This is a multipart message in MIME format.
--=_alternative 0054437785256EB4_=
Content-Type: text/plain; charset="US-ASCII"
I got very frustrated when I tried to save files and JRE hangs and I have
to kill eclipses and lose the changes. I am using eclipse RC2/CDT M9. I
reinstalled JRE 1.4.2_4, and issue is there, Anyone has the same
experience?
--=_alternative 0054437785256EB4_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">I got very frustrated when I tried to
save files and JRE hangs and I have to kill eclipses and lose the changes.
I am using eclipse RC2/CDT M9. I reinstalled JRE 1.4.2_4, and issue is
there, Anyone has the same experience?</font>
--=_alternative 0054437785256EB4_=--
|
|
| | | |
Re: Hung when saving files [message #106704 is a reply to message #106676] |
Thu, 17 June 2004 16:43   |
Eclipse User |
|
|
|
Hi John,
I tried it again, and it hung again. The status at the botton right corner
showed something like this: "C/C++ Indexer" 66%. Here is the code I
downloaded it from HP site to test if gdb/CDT works on HP-UX 11.11. The file
is also attached. My configuration is in my previous email.
BTW, do you know if anyone made debugging with CDT/gdb/gcc worked on HP-UX
11.11? I just want to know if it's possible.
Thanks a lot,
Robert Fu
------------------------ code -----------------
/* "average.c" */
#include <stdio.h>
#define num 10
#define first 0
#define last num-1
static int my_list[num] = {3,4,2,0,2,1,8,3,6,7};
int sum(int list[], int low, int high)
{
int i, s = 0;
for (i = low; i <= high; i++)
s += list[i];
return(s);
}
void print_average(int list[], int low, int high)
{
int total, num_elements, average;
total = sum(list, low, high);
num_elements = high - low; /* note this is an off-by-one bug */
average = total / num_elements;
printf("%10.d\n", average);
}
int main(void)
{
/* Try two test cases. */
print_average (my_list, first, last);
print_average (my_list, first, last - 3);
return 0;
}
"johnc" <jcamelon@ca.ibm.com> wrote in message
news:casp0l$3mk$1@eclipse.org...
> Does this happen for all files or just one in particular?
> If so, in order to fix it I require the source code or a cleaned up
example
> if the source is proprietary...
>
> JohnC
>
> "Robert Fu" <qrobertfu@yahoo.com> wrote in message
> news:caq91s$97u$1@eclipse.org...
> I had the same problem with similar configuration (RC2 + M9 + JDK 1.4 +
> gcc3.3.3) on HP-UX.
>
> Thanks,
> Robert Fu
> <huani@us.ibm.com> wrote in message news:can3jp$fa3$1@eclipse.org...
>
> I got very frustrated when I tried to save files and JRE hangs and I have
to
> kill eclipses and lose the changes. I am using eclipse RC2/CDT M9. I
> reinstalled JRE 1.4.2_4, and issue is there, Anyone has the same
experience?
>
>
Attachment: average.c
(Size: 0.69KB, Downloaded 88 times)
|
|
|
Re: Hung when saving files [message #106759 is a reply to message #106704] |
Fri, 18 June 2004 16:44  |
Eclipse User |
|
|
|
I've fixed some things today regarding error handling and infinite hangs ...
with these fixes that I have committed, I do not get a hang saving this
source code. Try it out on a build next week and let me know what you
think.
Thanks
JohnC
"Robert Fu" <qrobertfu@yahoo.com> wrote in message
news:casvr4$c0f$1@eclipse.org...
> Hi John,
>
> I tried it again, and it hung again. The status at the botton right corner
> showed something like this: "C/C++ Indexer" 66%. Here is the code I
> downloaded it from HP site to test if gdb/CDT works on HP-UX 11.11. The
file
> is also attached. My configuration is in my previous email.
>
> BTW, do you know if anyone made debugging with CDT/gdb/gcc worked on HP-UX
> 11.11? I just want to know if it's possible.
>
> Thanks a lot,
> Robert Fu
>
> ------------------------ code -----------------
> /* "average.c" */
>
> #include <stdio.h>
>
> #define num 10
>
> #define first 0
>
> #define last num-1
>
> static int my_list[num] = {3,4,2,0,2,1,8,3,6,7};
>
> int sum(int list[], int low, int high)
>
> {
>
> int i, s = 0;
>
> for (i = low; i <= high; i++)
>
> s += list[i];
>
> return(s);
>
> }
>
> void print_average(int list[], int low, int high)
>
> {
>
> int total, num_elements, average;
>
> total = sum(list, low, high);
>
> num_elements = high - low; /* note this is an off-by-one bug */
>
> average = total / num_elements;
>
> printf("%10.d\n", average);
>
> }
>
> int main(void)
>
> {
>
> /* Try two test cases. */
>
> print_average (my_list, first, last);
>
> print_average (my_list, first, last - 3);
>
>
> return 0;
>
> }
>
>
>
>
> "johnc" <jcamelon@ca.ibm.com> wrote in message
> news:casp0l$3mk$1@eclipse.org...
> > Does this happen for all files or just one in particular?
> > If so, in order to fix it I require the source code or a cleaned up
> example
> > if the source is proprietary...
> >
> > JohnC
> >
> > "Robert Fu" <qrobertfu@yahoo.com> wrote in message
> > news:caq91s$97u$1@eclipse.org...
> > I had the same problem with similar configuration (RC2 + M9 + JDK 1.4 +
> > gcc3.3.3) on HP-UX.
> >
> > Thanks,
> > Robert Fu
> > <huani@us.ibm.com> wrote in message news:can3jp$fa3$1@eclipse.org...
> >
> > I got very frustrated when I tried to save files and JRE hangs and I
have
> to
> > kill eclipses and lose the changes. I am using eclipse RC2/CDT M9. I
> > reinstalled JRE 1.4.2_4, and issue is there, Anyone has the same
> experience?
> >
> >
>
>
>
|
|
|
Goto Forum:
Current Time: Sun Jul 27 09:20:05 EDT 2025
Powered by FUDForum. Page generated in 0.04750 seconds
|