* Re:
[not found] <CA0BCF3BED56294AB91E3AD74B849FD51F192C@us-arlington-0668.mail.saic.com>
@ 2005-07-29 17:25 ` Glynn Clements
0 siblings, 0 replies; 3+ messages in thread
From: Glynn Clements @ 2005-07-29 17:25 UTC (permalink / raw)
To: Kirkwood, David A; +Cc: linux-c-programming
Kirkwood, David A wrote:
> I need to debug an X windows program which goes through many levels of
> windos on the screen. I tried using ddd but the ddd display captures all of
> the window events instead of the application I'm trying to debug capturing
> them. Is there some standard way to debug X apps or, is there some
> particular debugger better suited to this requirement? I'm using ddd.
It may help to run the program being debugged on a separate X display
to the debugging tools, so that you can more reliably control what
events it receives. If you debug it on the same display, its hard to
avoid the program receiving expose, enter/leave, focus etc events as
you use the debugging tools.
You don't need a second machine; an Xvnc session will do.
--
Glynn Clements <glynn@gclements.plus.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* (unknown)
@ 2004-09-13 11:11 Ankit Jain
2004-09-13 11:20 ` Ron Michael Khu
2004-09-14 15:26 ` Re: Ron Michael Khu
0 siblings, 2 replies; 3+ messages in thread
From: Ankit Jain @ 2004-09-13 11:11 UTC (permalink / raw)
To: gcc; +Cc: linux prg
hi
well i am fixed up in a new problem
i am using a array of size 1024*1024
it gives segmentation fault
it works with 512*512
my menory size is 128 mb and 512 swap
i have enough memory space and using gcc 3.2 v
may be i need to increase the memory size
how to do that?
ankit
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:
2004-09-13 11:11 (unknown) Ankit Jain
@ 2004-09-13 11:20 ` Ron Michael Khu
2004-09-14 15:26 ` Re: Ron Michael Khu
1 sibling, 0 replies; 3+ messages in thread
From: Ron Michael Khu @ 2004-09-13 11:20 UTC (permalink / raw)
To: Ankit Jain; +Cc: gcc, linux prg
did u try allocating it the dynamic way??
via a call to malloc or in a similar fashion?
Ankit Jain wrote:
>hi
>
>well i am fixed up in a new problem
>
>i am using a array of size 1024*1024
>
>it gives segmentation fault
>
>it works with 512*512
>
>my menory size is 128 mb and 512 swap
>
>i have enough memory space and using gcc 3.2 v
>
>may be i need to increase the memory size
>
>how to do that?
>
>ankit
>
>________________________________________________________________________
>Yahoo! Messenger - Communicate instantly..."Ping"
>your friends today! Download Messenger Now
>http://uk.messenger.yahoo.com/download/index.html
>-
>To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:
2004-09-13 11:11 (unknown) Ankit Jain
2004-09-13 11:20 ` Ron Michael Khu
@ 2004-09-14 15:26 ` Ron Michael Khu
1 sibling, 0 replies; 3+ messages in thread
From: Ron Michael Khu @ 2004-09-14 15:26 UTC (permalink / raw)
To: Ankit Jain; +Cc: gcc, linux prg
here 's an example of static and dynamic allocation...
(my prev example was only about single dimensional arrays...)
a 2dimensional array of 4450 x 4450
(change the dimension to 1450 x 1450 if u find the
first size to be too big)
TEST.C
#include <stdio.h>
int main()
{
double a[4450][4450];
a[4449][0] = 999;
printf( "%lf\n", a[4449][0] );
return 1;
}
TEST2.c
#include <stdio.h>
int main()
{
double **a;
int i;
a = (double**) calloc( 4450, sizeof(double*) );
for ( i=0; i <1450; i++ )
{
a[i] = (double*) calloc( 4450, sizeof(double) );
}
a[4449][0]=999;
printf( "%lf\n", a[4449][0] );
return 1;
}
Ankit Jain wrote:
>hi
>
>well i am fixed up in a new problem
>
>i am using a array of size 1024*1024
>
>it gives segmentation fault
>
>it works with 512*512
>
>my menory size is 128 mb and 512 swap
>
>i have enough memory space and using gcc 3.2 v
>
>may be i need to increase the memory size
>
>how to do that?
>
>ankit
>
>________________________________________________________________________
>Yahoo! Messenger - Communicate instantly..."Ping"
>your friends today! Download Messenger Now
>http://uk.messenger.yahoo.com/download/index.html
>-
>To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-29 17:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CA0BCF3BED56294AB91E3AD74B849FD51F192C@us-arlington-0668.mail.saic.com>
2005-07-29 17:25 ` Glynn Clements
2004-09-13 11:11 (unknown) Ankit Jain
2004-09-13 11:20 ` Ron Michael Khu
2004-09-14 15:26 ` Re: Ron Michael Khu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).