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.

Dark GDK / Memblocks not being created

Author
Message
Indecom
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 7th Jun 2009 09:54
yea, i'm using dbMakeMemblock, dbMakeMemblockFromImage, and neither of them return pointers to existing memblocks, basically they do nothing at all, is there something i'm doing wrong here?



basically every time it exits
Indecom
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 7th Jun 2009 10:44
Hmm apparently memblocks are touchy objects and you have to create them in order from 1 to whatever your max number is. or at least have a memblock 1 i dunno, but i fixed my problem for the most part
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Jun 2009 14:38
Quote: "and you have to create them in order from 1 to whatever your max number is"

No, you can create memblocks from 1 to 257 in any order you want.

Without seeing your original code, I can't tell what was wrong.

Indecom
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 7th Jun 2009 22:06
Ah okay that's my problem, the limit of 257 memblocks. I've been creating memblocks with the same number as my created objects, starting at 400. is there anyways to increase that limit?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Jun 2009 23:52
No. Unfortunately, it's hard coded into the library.

Indecom
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 8th Jun 2009 00:03
That's something which i think should be drastically increased. There should be as many memblocks possible as objects or images
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 8th Jun 2009 01:56
What are you using memblocks for? Operating on 257+ media memblocks per frame isn't exactly going to be fast.

Indecom
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 8th Jun 2009 02:24
Well i was using them to store unsigned shorts, but now i'm using an extra array instead and its working flawlessly

Login to post a reply

Server time is: 2024-11-25 10:41:21
Your offset time is: 2024-11-25 10:41:21