On 11/22/07, Marko Schugardt <[EMAIL PROTECTED]> wrote:

> if i execute a Perl SDL program (see below), then i get a strange
> behavior. My programmed window appears only a very short while. But i
> guess, it should stay there. A problem with SDL?

Maybe. Does the module pass all the tests?

> #error: execution to fast

Is this a line from your source code, or some misspelled error message?

> my $app = SDL::App->new
> (
>     -width  => 640,
>     -height => 480,
>     -depth  => 16,
> );
>
> #sleep 5;
> exit 0;

Do you want your window to persist after the exit? Generally, when a
program calls exit(), that's the end.

> Supplement: If i try to add an object with e.g. "SDL::Rect", it doesn't
> appear.

Maybe because you exit() before it can appear?

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


  • Perl SDL Marko Schugardt
    • Re: Perl SDL Tom Phoenix

Reply via email to