Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / @rich about memblocks

Author
Message
Wanja
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location:
Posted: 25th Sep 2002 03:41
Do you know if memblocks are buggy ? I tried everything but didn't get it to work...
Could you perhaps help me get rid of this problem?

please take a look at a post below
"Memblocks again ... "

thanx in advance
Wanja
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location:
Posted: 25th Sep 2002 04:27
it seems write memblock float doesn't work ... :/

could anyone proof that?

Wanja
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location:
Posted: 25th Sep 2002 13:03
..actually I tried out all memblock types
..well all work
EXCEPT ONE: Write Memblock F L O A T ...argh!!!!!

why this one? doooooooooooh

I really hope that will be patched

Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 25th Sep 2002 15:39
There were a lot of memblock issues with beta3 but the majority were fixed for release. Give me a few lines of code that doesn't work and I'll run it by Lee to see if it's a genuine bug or not.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Wanja
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location:
Posted: 26th Sep 2002 02:11
ok this doesn't work for me:
>>>>>>>>>>
X=123.456
make memblock 1, 1024
if MEMBLOCK EXIST(1)
WRITE MEMBLOCK FLOAT 1, 4, X
print MEMBLOCK FLOAT(1, 4)
endif
wait key
<<<<<<<<<<<<
it should print the X value but "Write memblock" do not seem to work

Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Sep 2002 03:44
But X isn't a float, it's an integer. Try X#.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
djr2cool
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location:
Posted: 26th Sep 2002 08:24
make image from memblock doesnt seem to work.. always crashes saying memblock doesnt exist.. even though i have tested it and the block did exist.

Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Sep 2002 09:12
show us the code
Ya know with the recent posts you've been making it feels like you've jumped into the deep end of DBpro without even learning to swim :p

"For the Greater Good"...
Kyi'Aun (Jedi Master) Rai'Ka
Wanja
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location:
Posted: 26th Sep 2002 14:36
OK I tried this:

X#=1.0
while X#<100000000.0
make memblock 1, 1024
if MEMBLOCK EXIST(1)
WRITE MEMBLOCK FLOAT 1, 4, X#
cls
set cursor 0,0
print MEMBLOCK FLOAT(1, 4)
delete memblock 1
endif
inc X#,1.0
endwhile

...it doesn't count up...

while this one is counting:
X=1
while X<100000000
make memblock 1, 1024
if MEMBLOCK EXIST(1)
WRITE MEMBLOCK DWORD 1, 4, X
cls
set cursor 0,0
print MEMBLOCK DWORD(1, 4)
delete memblock 1
endif
inc X,1
endwhile

still my fault? I'm confused ....

Login to post a reply

Server time is: 2024-04-19 03:58:09
Your offset time is: 2024-04-19 03:58:09