SplitterPanelWidget crash using kBindAll in CS3
I want to divide a panel in 2 regions using a SplitterPanelWidget. The widget is working as expected and I can fill it with other widgets. Since I have a resizable panel in a palette I want the SplitterPanelWidget to fill the whole panel. But as soon as I set the SplitterPanelWidget Binding to kBindAll, compile the plugin and start InDesign it crashes while displaying "Calling Late Initializers..." in the loading screen (because of an access violation in WidgetBin.dll at 0x02b3dc5e, trying to read at 0x00000000).
I get this result even with a very simple panel. It always happens if the binding is set in both directions of the splitter (e.g. kBindTop|kBindBottom when using a horizontal splitter bar but not with a vertical splitter bar and vice versa). kBindAll will crash too.
This is the main part of the widget defintion in the panel of a palette:
SplitterPanelWidget
(
kInvalidWidgetID, // The Identifier for this Widget
kPMRsrcID_None, // The Plugin ID
kBindAll, // Frame binding
Frame(10,10,190,150)
kTrue, // Is this visible
kTrue, // Is this enabled
"", // The String value
0, // The Top Widget (0 or 1)
kTrue, // Top Visible
kTrue, // Bottom Visible
50, // Splitter Current Position
50, // Splitter Initial Position
10, // Top Snap less than this snap up
kFalse, // Should Snap up?
20, // Bottom snap more than this snap down
kTrue, // Should Snap down?
kFalse, // Splitter Direction (kFalse=horizontal/kTrue=vertical)
5, // Splitter Radius
kFalse, // Resize Splitter proportional
1, // Single Click Splitter Actions
1, // DrawXOSplitter or RedrawPallets
{
GenericPanelWithBorderWidget
(
//...
),
GenericPanelWithBorderWidget
(
//...
),
}
),
Anyone has an idea what could cause that ?
|