I am having a situation with resources that has me stumped. I have about 580 total dialogs and some are randomly generating Cannot Create Dialog Fivewin/3 errors. Here's the thing: the dialogs are built correctly because if I bind them individually, they work. The error occurs when they are grouped together. Presently, the same two or three dialogs are throwing the error when grouped with the other 577. When I separate them out, the three load fine so it's not a strange control problem. Here is an example of one of them that fails to bind in the group, but works on its own (as you can see it's pretty simple) I've even tried renaming it:
DLG_STDCATEDIT DIALOG 29, 52, 430, 247
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Category Edit Table"
FONT 8, "MS Sans Serif"
{
LISTBOX 101, 9, 10, 95, 210, LBS_NOTIFY | LBS_USETABSTOPS | LBS_NOINTEGRALHEIGHT | WS_BORDER | WS_VSCROLL | WS_TABSTOP
CONTROL "", 102, "TWBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 111, 9, 309, 211
PUSHBUTTON "&New", 103, 110, 226, 50, 14
PUSHBUTTON "&Edit", 104, 162, 226, 50, 14
PUSHBUTTON "&Copy", 105, 214, 226, 50, 14
PUSHBUTTON "&Delete", 106, 266, 226, 50, 14
PUSHBUTTON "&Print", 107, 318, 226, 50, 14
PUSHBUTTON "Close", 108, 370, 226, 50, 14
}
I've tried the FW FindResource function and it returns 0 on the suspect dialogs, and it returns a number like 9397322 for the ones that load correctly. So I suspect that the problem is with the xHB linker somehow dropping the dialogs from the list. I have tried both compiled .res and straight .rc with the same results. I've even tried three different resource compilers thinking that might help, but it doesn't matter.
The *same* set of dialogs have worked for years in Clipper 5.2e + Blinker 7.0. My next step is to try straight xHarbour or Harbour, but I have reasons for using xHB and I don't want to give up.
Has anyone seen this problem and resolved it?
Thanks