delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/22/01:34:06

Message-ID: <358DED42.346046AB@post.comstar.ru>
Date: Mon, 22 Jun 1998 09:36:02 +0400
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: Comstar Ltd.
MIME-Version: 1.0
To: Chessa Alberto <achessa AT fiar DOT finmeccanica DOT it>,
"djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: [Allegro] lwp crash ?
References: <19980620070928066 DOT AAA239 AT chessa>


Chessa Alberto wrote:

> Sorry, I do not call lwp_spawn()! Allegro do it for me somewhere. Anyway, I
> workaround the problem by removing call to Allegro install_keyboard() (and
> any other reference to Allegro keyboard routines - now I use std consolle
> IO). Note that I call install_keyboard as second instruction of my program,
> just after allegro_init():
>  main(...)
> {
>   .... // some declaration - no code executed - stack allocation only
>
>   while((opt_flag=getopt(argc, argv, "....."))!= -1) {....}
>
>   allegro_init();
>   install_keyboard();   // offending line!
>
>   ....
> }
>

1. It seems to me you have misscofigured Palantir.
2. I recommend you get Palantir 0.4.2.
3. As far as I know ;-) you should call palantir_init(DEVICE_FLAG) at the very
beginning of your code.
It calls allegro_init() and other allegro's routines in proper order.

PS. read 'readme' and library description carefully. Take a look at examples, and
, I'm shure, your problems will gone away.
Good luck !

--
____ ____
|   \   /   Dim Zegebart
____/____

Moscow Russia
WWW - http://www.geocities.com/siliconvalley/pines/7817
DZcomm - comm library for Allegro
Palantir - multitasking kernel for Allegro (based on PDMLWP)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019