Set pack position on end not working
What is wrong in this code?
PHP Code:
Code:
[SM] Exception reported: Invalid DataPack position, 28 is out of bounds |
Re: Set pack position on end not working
Quote:
|
Re: Set pack position on end not working
You could try using Dynamic (linked in my signature) or a plan Trie.
|
Re: Set pack position on end not working
The quote from PM above is probably talking about is arbitrarily setting the position (e.g. writing four cells then setting the position to 2, which is wrong).
The short answer is you cannot set the pack position to the end. I think the intented way to use datapacks is create them, write all the data, then reset them and send them off to be read. The longer answer is I guess you can save the position of the last thing you wrote, then later set the position to that, then read that again to end up with the position being at the end. It also looks like SM's tracking of the datapack size will be wrong if you rewrite earlier portions of the datapack and not at the very end. |
Re: Set pack position on end not working
Quote:
Quote:
PHP Code:
|
Re: Set pack position on end not working
Just do
Code:
pack.ReadCell(); |
Re: Set pack position on end not working
This is what i need, thanks for your help guys.
|
Re: Set pack position on end not working
In the latest dev snapshot, setting the position to the end is now allowed.
|
Re: Set pack position on end not working
Quote:
Code:
DataPack hPack = new DataPack(); Quote:
Quote:
Code:
DataPack hPack = new DataPack(); |
Re: Set pack position on end not working
off.
One more question, please: Can I withdraw the TIMER_DATA_HNDL_CLOSE flag in timer callback? Or it is safe to use CloneHandle there:
Spoiler
thanks. |
All times are GMT -4. The time now is 14:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.