$segments.$add() crashes Studio
This is a known error in Studio 5.2.3.
It is not solved by Omnis.
I had the same problems. Only works in Development. Not anymore in runtime.
There was a conversation before on this list about this issue by Alan.
See text underneath.
This is what we were told:
This issue has been previously reported to us as ST/DF/220. Please note,
this will not be fixed for any versions of o$5. There is a possible
workaround , and that is to invoke the Runtime DataFile Tool that will
allow the user to specify the size of the segment, and add the segment by
using the following: $root.$modes.$dotoolmethod(kEnvToolBrowser,31,”NAME”)
;; where NAME is the internal name of the data file.
Quoting Jean Marc Azerad <email@example.com>:
> Hi guys,
> Sorry to bother with some antic kind of code, but I need to solve
> this issue fast.
> I have one customer still on DF1,who needs to add a segment on all his sites.
> The following code works on Mac but crashes Studio on PCs, (XP & 7)
> The manual addition of segment does work perfectly on Mac and PC, so
> it is not a matter of user’s rights
> Calculate Size as 524000
> Do $root.$datas.Edmus.$segments.$add(PathData,Size,ErrorCode) Returns DfPlus
> PathData contains C:DEVEDMUS (OS5)EDMUSdata
> Which where the DF1 is.
> Studio 5.2.3
> Any clue very welcome
> Thank you
> Manage your list subscriptions at lists.omnis-dev.com
Manage your list subscriptions at lists.omnis-dev.com