Printing a .png using GtkPrint

2009-11-17 Thread Richard Shann
I am trying to use GtkPrint* to print a .png file, the code I have tried pops up the print dialog but nothing arrives in the printer queue. The draw page signal is being received when I ok the print dialog. The function I am using for the draw-page signal to try and print is this: static void dra

Re: Application termination at some point

2009-11-17 Thread David Nečas
On Tue, Nov 17, 2009 at 11:23:54AM +, ds.sun...@gmail.com wrote: V> I know the bug is in my code and i want to fix that. I am new to linux > programming and hence i am learning things now. I don't want you to fix > the bug. What i all want to please let me know the ways that i can find > th

Re: Re: Application termination at some point

2009-11-17 Thread Florian Müllner
On mar, 2009-11-17 at 10:47 +, ds.sun...@gmail.com wrote: > Thank you very much for your replies guys... > > I run my test application with -g option and i am getting the following > error message. I not able to fix the issue with the available information. > Am i doing things correctly or

Re: Re: Re: Application termination at some point

2009-11-17 Thread ds . sundar
I learned to generate the core dump file of the test application when it crashes... and using the gdb debugger i got the following bt... Could you please tell me where might be the problem? Core was generated by `./test'. Program terminated with signal 6, Aborted. [New process 15078] #0 0x0

Re: Re: Application termination at some point

2009-11-17 Thread ds . sundar
Dear Yeti, I know the bug is in my code and i want to fix that. I am new to linux programming and hence i am learning things now. I don't want you to fix the bug. What i all want to please let me know the ways that i can find the bug in my code. I can find the way to fix the bug but it will

Re: Application termination at some point

2009-11-17 Thread David Nečas
On Tue, Nov 17, 2009 at 10:47:39AM +, ds.sun...@gmail.com wrote: > I run my test application with -g option and i am getting the following > error message. I not able to fix the issue with the available > information. Am i doing things correctly or not? Is this the one you want > me to do?

Re: Re: Application termination at some point

2009-11-17 Thread ds . sundar
Thank you very much for your replies guys... I run my test application with -g option and i am getting the following error message. I not able to fix the issue with the available information. Am i doing things correctly or not? Is this the one you want me to do? Please help me... [Thread

Re: Application termination at some point

2009-11-17 Thread David Nečas
On Tue, Nov 17, 2009 at 10:01:42AM +, ds.sun...@gmail.com wrote: > Could you please guide me how to fix this issue by building -g option? -g enables deubging (i.e. symbolic) information in the resulting executable, making easier to examine the program using a debugger (gdb, valgrind, ...). Th

Re: Re: Application termination at some point

2009-11-17 Thread ds . sundar
Could you please guide me how to fix this issue by building -g option? Thanks & Regards Sundaram. D On Nov 17, 2009 3:25pm, Bill C wrote: Valgrind gives detailed information on memory errors. Requires understanding of programming to use however. Suggest building programs with -g opti

Re: Application termination at some point

2009-11-17 Thread Bill C
Valgrind gives detailed information on memory errors. Requires understanding of programming to use however. Suggest building programs with -g option Rgds Bill C ds.sun...@gmail.com wrote: Dear All, My GTK+ application terminates at some point. I have given below the backtrace that i got .

Re: Application termination at some point

2009-11-17 Thread David Nečas
On Tue, Nov 17, 2009 at 09:24:49AM +, ds.sun...@gmail.com wrote: > My GTK+ application terminates at some point. I have given below the > backtrace that i got Can anybody guide me to fix the issue please. > > > ./test: malloc(): memory corruption: 0x08a357e8 *** The standard advice for

Application termination at some point

2009-11-17 Thread ds . sundar
Dear All, My GTK+ application terminates at some point. I have given below the backtrace that i got Can anybody guide me to fix the issue please. ./test: malloc(): memory corruption: 0x08a357e8 *** === Backtrace: = /lib/libc.so.6[0x6dc883] /lib/libc.so.6[0x6ddc70] /lib/libc.