A.J. Venter | 1 Nov 06:57
Picon
Gravatar

Re: Lazarus/FPC and SDL on W32 and Linux

on 10/31/07, David Pethes <imcold <at> imcold.evilhosting.org> wrote:
> Hi,
>
> bembulak wrote:
> > Is there some kind of userbase/community on game-programming and
> > lazarus/FPC?
>
> Check out http://www.pascalgamedevelopment.com/ , especially the forum
> section. You can use the jedi-sdl pascal headers for cross-platform
> SDL+FPC development.
> Best regards,
There is also the sdl4fp headers http://sdl4fp.sourceforge.net/ which
are h2pas conversions, though I think they may be outdated now.
If you would prefer native lazarus components then gamepack may suit
you. Somebody also had a post here earlier this week about an SDL
framework from XCode - I don't know if that is mac specific or general
though - perhaps somebody could provide a link ?

A.J.
--

-- 
A.J. Venter
Director of Product Development
Tel.: +27 21 554 5059
Fax: +27 21 413 2800
Outkast Solutions IT
www.outkastsolutions.co.za
A division of Global Pact Trading Pty Ltd.

www.silentcoder.co.za - Blog
scartoonz.silentcoder.co.za - ScarToonz webcomic
(Continue reading)

Picon
Gravatar

Re: [fpc] SQLdb: not clear excetion, "Server connect failed."

fpc 2.2.0 sqldb-mysql doesn't work on 64-bit systems. You should use fpc
2.2.1.

Joost

Op woensdag 31-10-2007 om 17:19 uur [tijdzone +0100], schreef Alvise
Nicoletti:
> I finally managed to install lazarus on a linux 64 bits.
> 
> But when I start the once-32-bit-working program that now is at 64 bit I 
> get this message when I do a query:
> Server connect failed.
> 
> I also got a "Connection esabilished" in the beginning of the program. 
> So that should not be a library problem.
> 
> How can I troubleshoot this?
> 
> On the system 64 bits libs are correctly working.
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request <at> miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
> 
--

-- 

Albert Zeyer | 1 Nov 13:23
Picon
Picon
Favicon
Gravatar

freeze while resizing a window (GTK2 with rev 12674)

Hi,

I got a freeze when I resize my window to a size where one of the panels
of the form becames completly hidden (it is moved to the left while
making the window smaller; this is because of the Anchors: left, right,
bottom).

I am using GTK2 and Lazarus rev 12674.

On the console, I get all the time: (also when I do nothing)
[DBGTGT]
NOTE: TGtkWidgetSet.InvalidateRect during paint message: TMainForm

I paused the application after it freezed. This is the stack then:

#0 g_source_list_add((^GSource) 0x8a45458, (^GMainContext) 0x837c308) at
gmain.c:848
#1 IA__g_source_attach((^GSource) 0x8a45458, (^GMainContext) 0x837c308)
at gmain.c:913
#2 IA__g_idle_add_full(110, 0xb7c0b235 <gtk_container_idle_sizer>, 0x0,
0) at gmain.c:3986
#3 _gtk_container_queue_resize((^GtkContainer) 0x837c968) at
gtkcontainer.c:1154
#4 real_queue_resize((^GtkWidget) 0x8378a98) at gtksizegroup.c:143
#5 queue_resize_on_widget((^GtkWidget) 0x8378a98, 1) at
gtksizegroup.c:187
#6 IA__gtk_widget_queue_resize((^GtkWidget) 0x8378a98) at
gtkwidget.c:2795
#7 gtk_layout_move_internal((^GtkLayout) 0x837c968, (^GtkWidget)
0x8378a98, 1, 0, 1, 311) at gtklayout.c:399
(Continue reading)

Giuliano Colla | 1 Nov 13:29
Picon
Gravatar

svn r 12675 fails to compile

When trying to rebuild Lazarus with latest svn (r 12675), compile fails.
In fileprocs.pas it complains that it cannot determine which overloaded 
function to use,  in the DebugLn procedure,  between line vtInt64 and 
vtQWord.
Reverting to r 12674 works fine.

Platform is linux, widgetset gtk1.

Thanks,

Giuliano

Mattias Gaertner | 1 Nov 13:53
Picon
Favicon

Re: svn r 12675 fails to compile

On Thu, 01 Nov 2007 13:29:21 +0100
Giuliano Colla <giuliano.colla <at> fastwebnet.it> wrote:

> When trying to rebuild Lazarus with latest svn (r 12675), compile
> fails. In fileprocs.pas it complains that it cannot determine which
> overloaded function to use,  in the DebugLn procedure,  between line
> vtInt64 and vtQWord.
> Reverting to r 12674 works fine.
> 
> Platform is linux, widgetset gtk1.

It works here with 2.2.1. The change was done for the recent 2.3.1
compiler. What fpc version do you use?

I added a qword overload. Maybe this will run compile under all fpc
versions.

Mattias

Mattias Gaertner | 1 Nov 13:59
Picon
Favicon

Re: freeze while resizing a window (GTK2 with rev 12674)

On Thu, 01 Nov 2007 14:23:59 +0200
Albert Zeyer <albert.zeyer <at> rwth-aachen.de> wrote:

> Hi,
> 
> I got a freeze when I resize my window to a size where one of the
> panels of the form becames completly hidden (it is moved to the left
> while making the window smaller; this is because of the Anchors:
> left, right, bottom).
> 
> I am using GTK2 and Lazarus rev 12674.
> 
> On the console, I get all the time: (also when I do nothing)
> [DBGTGT]
> NOTE: TGtkWidgetSet.InvalidateRect during paint message: TMainForm

This normally indicates, that you have a bug in your OnPaint code. Only
paint in the OnPaint event. Do not change properties or resize, move,
delete or create controls.

Mattias

12 12 | 1 Nov 14:24
Picon
Favicon

Hiding ancentors member during inheritance

Suppose i've got class
TA = class
public
  itsMember1 : longint;
end;

I want class TB = class(TA); but itsMember1 should be private.
Is it possible?

--
12 12 aka skywriter

Antonio Sanguigni | 1 Nov 14:25
Picon

Re: svn r 12675 fails to compile

It works here with 2.2.1. The change was done for the recent 2.3.1
compiler. What fpc version do you use?

I added a qword overload. Maybe this will run compile under all fpc
versions.

I have the same error here. Fpc version 2.2.0 .

Thanks
Antonio

--
Antonio Sanguigni alias slapshot
----------------------------------------------------------------------
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org
Giuliano Colla | 1 Nov 14:51
Picon
Gravatar

Re: svn r 12675 fails to compile

Mattias Gaertner ha scritto:
> On Thu, 01 Nov 2007 13:29:21 +0100
> Giuliano Colla <giuliano.colla <at> fastwebnet.it> wrote:
>
>   
>> When trying to rebuild Lazarus with latest svn (r 12675), compile
>> fails. In fileprocs.pas it complains that it cannot determine which
>> overloaded function to use,  in the DebugLn procedure,  between line
>> vtInt64 and vtQWord.
>> Reverting to r 12674 works fine.
>>
>> Platform is linux, widgetset gtk1.
>>     
>
> It works here with 2.2.1. The change was done for the recent 2.3.1
> compiler. What fpc version do you use?
>
>   
You're right, I forgot to mention. It's fpc 2.0.4.

Giuliano

Albert Zeyer | 1 Nov 14:51
Picon
Picon
Favicon
Gravatar

Re: freeze while resizing a window (GTK2 with rev 12674)

Am Donnerstag, den 01.11.2007, 13:59 +0100 schrieb Mattias Gaertner:
> On Thu, 01 Nov 2007 14:23:59 +0200
> Albert Zeyer <albert.zeyer <at> rwth-aachen.de> wrote:
> 
> > On the console, I get all the time: (also when I do nothing)
> > [DBGTGT]
> > NOTE: TGtkWidgetSet.InvalidateRect during paint message: TMainForm
> 
> This normally indicates, that you have a bug in your OnPaint code. Only
> paint in the OnPaint event. Do not change properties or resize, move,
> delete or create controls.
> 

I stepped through the code and I figured out that I get the message
exactly at this point:
	GamePanel.Canvas.Draw(0,0,MyRoomPic.Picture);
GamePanel is a TImage and MyRoomPic.Picture is a TBitmap.

So, is the code wrong? How should I draw otherwise the TBitmap on the
TImage?

--
Albert


Gmane