Reusing Properties - not?
Posted: Wed Feb 25, 2004 10:24 pm
In order to save property usage I re/created MoviePro and JukeBot to use the same set of Thumbnail properties.
Installed MoviePro and everythig is kosher. Installed JukeBot with the new common TC Thumb1Cover etc properties as MoviePro.
Now HouseBot errors at startup with
Trace Section 'ask Block' generated an assertion, File <C:\HB\Development\ServerFrame\TaskBlock.cpp> Line:<151>
Unable to find property, Device ID =[39] Property ID = [774]
Yuck
Decided to investigate and sure enough device 39 [MoviePro] points to a series of Properties 774 to 8xx which were the initially installed common TC (Thumbcover) properties in the DeviceProperty Table. However those property numbers no longer exist in the the Property table.
It appears that when I installed JukeBot after MoviePro, because this also has registration code that would set up the same TC properties rather than ignoring the registration for properties that already exist, HouseBot deleted the old properties with the same name and recreated them with new Property numbers leaving MoviePro 'HIGH AND DRY' pointing to property numbers that no longer exist.
ERGO! the start-up errors --
Installed MoviePro and everythig is kosher. Installed JukeBot with the new common TC Thumb1Cover etc properties as MoviePro.
Now HouseBot errors at startup with
Trace Section 'ask Block' generated an assertion, File <C:\HB\Development\ServerFrame\TaskBlock.cpp> Line:<151>
Unable to find property, Device ID =[39] Property ID = [774]
Yuck
Decided to investigate and sure enough device 39 [MoviePro] points to a series of Properties 774 to 8xx which were the initially installed common TC (Thumbcover) properties in the DeviceProperty Table. However those property numbers no longer exist in the the Property table.
It appears that when I installed JukeBot after MoviePro, because this also has registration code that would set up the same TC properties rather than ignoring the registration for properties that already exist, HouseBot deleted the old properties with the same name and recreated them with new Property numbers leaving MoviePro 'HIGH AND DRY' pointing to property numbers that no longer exist.
ERGO! the start-up errors --