FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 16 matches
Forum Index
Author Message
  Topic: Memory Management
dsimcha

Replies: 6
Views: 16188

PostForum: gtkD   Posted: Wed Jul 28, 2010 1:36 pm   Subject: Memory Management
Memory management isn't all that good, there are for example some objects witch need to be explicitly destroyed.

what are these objects?

Off the top of my head, cairo.Context and, gdk.GC come to ...
  Topic: Rotated Text, Save Bitmap
dsimcha

Replies: 5
Views: 26799

PostForum: DFL   Posted: Wed Jul 28, 2010 1:34 pm   Subject: Rotated Text, Save Bitmap
How about this, I added an this(ref LogFont lf, float emSize, FontStyle style, GraphicsUnit unit)so you could use this to keep RFont in your project and use the new Font constructor.
If it's ...
  Topic: Rotated Text, Save Bitmap
dsimcha

Replies: 5
Views: 26799

PostForum: DFL   Posted: Sat Jul 24, 2010 1:50 pm   Subject: Rotated Text, Save Bitmap
Here's some code that does rotated text. It's buggy in terms of text measuring/wrapping, but it's better than nothing and serves the purposes of my plotting lib. Could you please fold it into the ne ...
  Topic: Pixbuf Memory Consumption Issue
dsimcha

Replies: 6
Views: 16116

PostForum: gtkD   Posted: Tue Jul 20, 2010 9:18 pm   Subject: Pixbuf Memory Consumption Issue
ObjectG.unref(pixbuf.getPixbufStruct());

Or when using svn:

pixbuf.unref();

Is the memory management of gtkD eventually going to get fully integrated into D's GC frame ...
  Topic: DLL Loader + Invalid DLLs
dsimcha

Replies: 2
Views: 12905

PostForum: gtkD   Posted: Tue Jul 20, 2010 3:43 pm   Subject: DLL Loader + Invalid DLLs
The loaded dll's are defined in src/gtkc/paths.d but SnacNp64.dll isn't one of them, windows might be trying to load the dll as a dependency. But i cant imagine why.

It has to do with network drive ...
  Topic: Memory Management
dsimcha

Replies: 6
Views: 16188

PostForum: gtkD   Posted: Tue Jul 20, 2010 3:41 pm   Subject: Memory Management
Memory management isn't all that good, there are for example some objects witch need to be explicitly destroyed.

So can I interpret this as "these will get fixed eventually and unless the leak ...
  Topic: DLL Loader + Invalid DLLs
dsimcha

Replies: 2
Views: 12905

PostForum: gtkD   Posted: Tue Jul 20, 2010 9:08 am   Subject: DLL Loader + Invalid DLLs
How do I make gtkD's DLL loader automatically ignore unsuccessful DLL loads? When I run a program I created in gtkD and compiled using (32-bit) DMD2 from a Win64 console and try to load a file dialog ...
  Topic: Memory Management
dsimcha

Replies: 6
Views: 16188

PostForum: gtkD   Posted: Mon Jul 19, 2010 10:00 am   Subject: Memory Management
How does memory management work in gtkD? I seem to be getting a lot of leakage. Is gtkD fully integrated into the D GC, or does one need to care about memory management when using it?

I've notice ...
  Topic: Example code for DrawingArea
dsimcha

Replies: 1
Views: 10570

PostForum: gtkD   Posted: Fri Jul 16, 2010 10:55 pm   Subject: Example code for DrawingArea
I'm trying to use DrawingArea to create custom drawings on a Window. I've read over the docs and the following code seems reasonable to create a minimal drawing with a single line. When I run it, I ...
  Topic: Drawable Constructor
dsimcha

Replies: 1
Views: 8703

PostForum: gtkD   Posted: Fri Jul 16, 2010 10:34 pm   Subject: Drawable Constructor
Never mind, I've RTFM and figured this out, though the docs are a bit obtuse and could use some examples.
  Topic: Drawable Constructor
dsimcha

Replies: 1
Views: 8703

PostForum: gtkD   Posted: Fri Jul 16, 2010 7:42 am   Subject: Drawable Constructor
I've noticed that there is no way to create a gdk.Drawable without using the low-level C pointer-to-struct C API that gtkD was created to wrap. The only constructor takes a GdkDrawable*. Is this int ...
  Topic: Control Events
dsimcha

Replies: 1
Views: 17637

PostForum: DFL   Posted: Wed Jul 14, 2010 10:35 pm   Subject: Control Events
The double-click event in the following code does not work. When the area the Foo control occupies is double-clicked, nothing happens.

import dfl.all;

class Foo : Control {
Pictur ...
  Topic: Rotated Text, Save Bitmap
dsimcha

Replies: 5
Views: 26799

PostForum: DFL   Posted: Sat Jul 10, 2010 10:51 pm   Subject: Re: Rotated Text, Save Bitmap
To rotate text, you could write the text normally into a temporary bitmap, and then rotate the pixels as you copy them to where you want it.


I thought of this, but I couldn't figure out how to im ...
  Topic: PictureBox.location: Broken or being used wrong?
dsimcha

Replies: 1
Views: 17404

PostForum: DFL   Posted: Wed Jul 07, 2010 7:06 pm   Subject: PictureBox.location: Broken or being used wrong?
The following code gives me a PictureBox in the far upper left corner of my form, not at an offset of 50, 50 pixels as I would expect, using DFL Release Candidate and DMD 2.047. Is this a bug in DFL ...
  Topic: Launching Multiple Windows
dsimcha

Replies: 1
Views: 17304

PostForum: DFL   Posted: Wed Jul 07, 2010 5:14 pm   Subject: Launching Multiple Windows
How does one launch multiple GUI windows at application startup? I'm new to GUI programming and it seems like, once you launch one window, that window spends all its time in the event handler loop, s ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group