1. free_console() problem

Hi Forum,

I am having a problem using free_console() in conjuction with
prompt_string. My program calls up a console using a routine, checks
the input of the prompt and then takes appropriate action based on the
input then closes the console using free_console(). It works fine up
to this point. However when i attempt to open the console using the
same routine a second time it opens correctlly with the caret awaiting
the input but i cannot type anything into it. Anyone have any idea
what's goin on.

Thanks

new topic     » topic index » view message » categorize

2. Re: free_console() problem

spent memory wrote:
> 
> Hi Forum,
> 
> I am having a problem using free_console() in conjuction with
> prompt_string. My program calls up a console using a routine, checks
> the input of the prompt and then takes appropriate action based on the
> input then closes the console using free_console(). It works fine up
> to this point. However when i attempt to open the console using the
> same routine a second time it opens correctlly with the caret awaiting
> the input but i cannot type anything into it. Anyone have any idea
> what's goin on.
> 
> Thanks
> 

What OS are you running?  What version of Eu are you running?  Are you using
ex.exe, exw.exe, or exwc.exe? (or Linux?)  Can you provide a small demo program
that shows what you are doing?

Thanks,
-- Brian

new topic     » goto parent     » topic index » view message » categorize

3. Re: free_console() problem

ok i am running windows XP, Eu 2.5, i am using .exw extension on the
program. Here is the code that is called by the routing

global procedure getconsole()

       object msg
       
       msg = ""

       puts(1,"Console >> ")

       msg = prompt_string("")
       
       if equal(msg,"CLOSE") or equal(msg,"close") then

          free_console()
       end if

   getconsole()

end procedure


*this works fine the first time around, but if called up a second time
i cant enter anything into the prompt.

new topic     » goto parent     » topic index » view message » categorize

4. Re: free_console() problem

sorry i have made a typo earlier i am using Eu 2.4 =)


On Tue, 25 Jan 2005 15:24:41 +1000, spent memory <spent.memory at gmail.com>
wrote:
> 
> ok i am running windows XP, Eu 2.5, i am using .exw extension on the
> program. Here is the code that is called by the routing
> 
> global procedure getconsole()
> 
>       object msg
> 
>       msg = ""
> 
>       puts(1,"Console >> ")
> 
>       msg = prompt_string("")
> 
>       if equal(msg,"CLOSE") or equal(msg,"close") then
> 
>          free_console()
>       end if
> 
>   getconsole()
> 
> end procedure
> 
> *this works fine the first time around, but if called up a second time
> i cant enter anything into the prompt.
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: free_console() problem

On Tue, 25 Jan 2005 15:24:41 +1000, spent memory
<spent.memory at gmail.com> wrote:

>i am running windows XP, 
Problem reproduced on win98SE,  2.3,  2.4 & 2.5a

Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu