Memory leak in testrealtime

Prakash Bhurke <[email protected]> Wed, 29 Sep 2004 10:07:31 -0700 (PDT)
Newsgroups gmane.comp.scigraphica.gtkextra
Message-ID <[email protected]>
Hi Adrian,
 
  I have made changes as per instructions in my
application.
  I got one link error ..undefined refrence to 
 gtk_plot_canvas_add_plot(GTK_PLOT_CANVAS(canvas), gtk_plot_canvas_plot_new(GTK_PLOT(active_plot1)),
0.15, 0.01);
 
I changed above line as follows :
 gtk_plot_canvas_put_child(GTK_PLOT_CANVAS(canvas), \
 gtk_plot_canvas_plot_new(GTK_PLOT(active_plot1)),
0.15, 0.01, 0.15+.65, 0.01+.45);

Is  this correct?
 
After that change , I built my application
successfully. But during runtime, I got following
errors. Also it doesn't show plot on screen.
(Please read complete mail. Sorry for sending too
large mail :) ).
----------------------------------------------------
Console errors of my applcation :
(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 644 (gdk_draw_drawable
): assertion `src != NULL' failed

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:300: CreateDIBSection fail
ed: The parameter is incorrect.

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:111: DeleteObject failed:
The parameter is incorrect.

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 643 (gdk_draw_drawable
): assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed
-----------------------------------------------------

Also i tried testrealtime.exe. For first few mins it
works fine, but after  25 mins it crashed.
From WindowsXP task manager I found following status
of testrealtime.exe.:
After 1 min memory status of testrealtime.exe was :
Memory usage = 11,900k
Peak Mem usage = 14,000k
VM Size = 12,764k

After 25 mins (i.e. after crash) memory status of
testrealtime.exe was :
Memory usage = 7,756k
Peak Mem usage = 89,260k
VM Size = 87,996k
----------------------------------------------------
Also, on console I got following errors for
testrealtime.exe :
(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 644 (gdk_draw_drawable
): assertion `src != NULL' failed

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:300: CreateDIBSection fail
ed: The parameter is incorrect.

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:111: DeleteObject failed:
The parameter is incorrect.

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 643 (gdk_draw_drawable
): assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 644 (gdk_draw_drawable
): assertion `src != NULL' failed

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:300: CreateDIBSection fail
ed: The parameter is incorrect.

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:111: DeleteObject failed:
The parameter is incorrect.

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 643 (gdk_draw_drawable
): assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 644 (gdk_draw_drawable
): assertion `src != NULL' failed

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:300: CreateDIBSection fail
ed: The parameter is incorrect.

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:111: DeleteObject failed:
The parameter is incorrect.

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 643 (gdk_draw_drawable
): assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 644 (gdk_draw_drawable
): assertion `src != NULL' failed

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:300: CreateDIBSection fail
ed: The parameter is incorrect.

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:111: DeleteObject failed:
The parameter is incorrect.

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 643 (gdk_draw_drawable
): assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 644 (gdk_draw_drawable
): assertion `src != NULL' failed

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:300: CreateDIBSection fail
ed: The parameter is incorrect.

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:111: DeleteObject failed:
The parameter is incorrect.

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 643 (gdk_draw_drawable
): assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkpango.c:
line 526 (gdk_draw_layout)
: assertion `GDK_IS_DRAWABLE (drawable)' failed

(ios/ios.exe:1436): Gdk-CRITICAL **: file gdkdraw.c:
line 644 (gdk_draw_drawable
): assertion `src != NULL' failed

(ios/ios.exe:1436): Gdk-WARNING **:
gdkpixmap-win32.c:300: CreateDIBSection fail
ed: The parameter is incorrect.

-------------------------------------------------

I don't know how to use pango font, I will read
documents related pango font & I will try it.

Thanks,

Regards,
Prakash.



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl