comp.lang.ada
 help / color / mirror / Atom feed
From: skibochka@yahoo.com (Andrew Skiba)
Subject: Re: Problem with C function pointers
Date: 22 Dec 2003 01:37:39 -0800
Date: 2003-12-22T01:37:39-08:00	[thread overview]
Message-ID: <963c4dec.0312220137.6641e5b6@posting.google.com> (raw)
In-Reply-To: mailman.152.1072015461.31149.comp.lang.ada@ada-france.org

After I wrote all answers, I saw the whole message became off-topic.
I'm sorry for that, and I'm ready to continue the duscussion in any
other place, if there are further questions.

> Well, I have learned from many years of posting here never to assume
> the "obvious", but instead to ask for precise details. Often the
> problem is that the poster is assuming something they shouldn't (which
> was the case here :).
I would never have such problem with C++, I mean, I would immediately
know what the problem is, but with Ada I tried to find a black cat in
a dark room, when it wasn't there :)

> > > Have you tried running under gdb, and examining "thiz"?
> > No, I printed it instead :-) It was "null", as you said.
> 
> Learn gdb; it's much better than Put_Line.
I use it for a very long time, may be you heard, that it works for C,
too :) The problem is, DirectFB has issues with debugging on the same
monitor, because it OBVIOUSLY (:-) has exclusive control of the video
card. Usually they are debugging via ssh, or a com-port. For simple
cases put_line isn't that bad.

> Hmm. So it _doesn't_ run under X Windows?
Did I say that? Of course, it runs under X Windows. Try tuxrunner game
for an example what it is. And, there is http://directfb.org/ to find
other cute projects.

> How big is it, compared to X Windows?
Very small. That's the point, after all :-) It does not have to do
much, linux kernel has device /dev/fb (if you configure it right), so
the library only makes memcopy to it. Well, it's oversimplified, but
the principle is right, I hope.

> Now we have a third target for GtkAda :).
Sorry, I did not understand that joke. If you meant to run GTK on
DirectFB, that's done already, as well as mplayer, SDL, FreeVO and so
on. I need it for a project, similar to FreeVO.

Regards,
Andrew Skiba.



  reply	other threads:[~2003-12-22  9:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-19 22:13 Problem with C function pointers Andrew Skiba
2003-12-20  2:07 ` Stephen Leake
2003-12-21 13:06   ` Andrew Skiba
2003-12-21 14:04     ` Stephen Leake
2003-12-22  9:37       ` Andrew Skiba [this message]
2003-12-22 23:10         ` Stephen Leake
2003-12-23 16:04           ` Ad Buijsen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox