Search found 3 matches

by MikeM
Thu Mar 11, 2010 12:49 pm
Forum: Coding Questions
Topic: "hello, world" purely in FASM for PureBasic?
Replies: 10
Views: 4130

Re: "hello, world" purely in FASM for PureBasic?

A simple hello.fasm in DOS-mode:

org 100h ; code starts at offset 100h(256 bytes)
mov ah,9 ; number of DOS-function display_text = 9
mov dx,hello
int 21h
ret
hello db 'Hello world!',24h

Open console(cmd.exe) and:
>fasm.exe hello.fasm hello.com
>hello.com
You'll get:
Hello world!
( fasm.exe in c ...
by MikeM
Tue Feb 16, 2010 6:39 pm
Forum: Coding Questions
Topic: RunProgram("sh",...) fails after 1000+ calls
Replies: 8
Views: 1867

Re: RunProgram("sh",...) fails after 1000+ calls

Hi, mdp .
Thanks for the clarification.Naturally, i've have been stupid last post.
I mean another thing: the number of simultaneously open-file descriptors
for one process in Linux(default is 1024).
To check it you may:
> ulimit -aS
To increase your limits, you may do the following steps:
1) At the ...
by MikeM
Mon Feb 15, 2010 7:52 pm
Forum: Coding Questions
Topic: RunProgram("sh",...) fails after 1000+ calls
Replies: 8
Views: 1867

Re: RunProgram("sh",...) fails after 1000+ calls

Hi.
I've got the same result through valgrind under openSuse11.1:
#valgrind /tmp/purebasic_compilation0.out
// it's the executable.

==15826== Warning: invalid file descriptor 1029 in syscall pipe()
[Debugger] 1021
[Debugger] !!! Cannot RunProgram "date"
[Debugger]

To my mind, it's the limitation ...