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.

DLL Talk / Weird problem with Matrix's Datafiles and Memblocks.

Author
Message
Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 15th Feb 2008 12:43
It should be something obvious here, but I cant just get it. I cant understand why this code crashes. Maybe I really cant find something plain simple or is it a bug?



Replace D:\ with your local drive. This code piece should create a cube, convert it to a memblock then save it to a datafile. But when it tries to read that saved memblock back it pops out a strange error. It says "Not a memblock byte". What does this means?

Thank you,
Olby


ACER Aspire 5920G: Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, DirectX10, DBPro 6.6b
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Feb 2008 19:06
The problem here is that the memblock system treats bytes as positive integers while my datafile plug-in treats them as signed integers.

Use this slightly modified function instead of your own to fix the problem for now, and I'll introduce a fix to my plug-in in the next release later this month.


Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 16th Feb 2008 17:56
Should work now. Thank you Ian.


ACER Aspire 5920G: Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, DirectX10, DBPro 6.6b

Login to post a reply

Server time is: 2024-09-08 03:34:45
Your offset time is: 2024-09-08 03:34:45