From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,27200915cbff176 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-22 01:37:39 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: skibochka@yahoo.com (Andrew Skiba) Newsgroups: comp.lang.ada Subject: Re: Problem with C function pointers Date: 22 Dec 2003 01:37:39 -0800 Organization: http://groups.google.com Message-ID: <963c4dec.0312220137.6641e5b6@posting.google.com> References: <963c4dec.0312191413.15c9cb08@posting.google.com> <963c4dec.0312210506.27b8f4e1@posting.google.com> NNTP-Posting-Host: 213.8.52.165 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1072085859 22288 127.0.0.1 (22 Dec 2003 09:37:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 22 Dec 2003 09:37:39 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3690 Date: 2003-12-22T01:37:39-08:00 List-Id: 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.