Here's the situation (and the problem is easily recreated).
I have a very small application. There are only two .pbl's. The larger one has about 45 objects and is in the same directory with the target. Objects are mostly the menu, windows and data windows. Real basic stuff. Included in the windows are many that are first level and second level descendants from the second .pbl, which is in a completely separate directory. This .pbl contains one window which is the ancestor of most of the windows in the app.
I'm compiling in 64 bit P code, although I tried machine code and the result was the same. Initially, I did .pbd's for both of the .pbl's, even though all the datawindows and windows in the app were named in the code. Some of the calls for a window did not fail but most of them did.
So I tried compiling without the .pbd's. The .exe ran flawlessly. Put them back in and got the same errors. Then I left the smaller .pbl out and just made a .pbd out of the larger .pbl. The .exe ran flawlessly.
On review, the windows that were referred to in the error messages were those descendents of the window in the .pbl from the other directory.
Windows were called from the menu in the clicked event with "open(w_name)".
The app never failed to run in the IDE and there were no error messages from the compiler. I have another, much bigger, app that makes extensive use of the ancestor window in the same smaller .pbl. But the .pbl is in the same directory as the target. Here, I have to use .pbd's because I have a number of datawindow objects that are actually called from the database. This app ran clean the first time compiled.
I can only speculate that having the ancestor window in a "foreign" .pbl may be significant...
Dave
Another possibility is a corrupt Project object class. It might be worth deleting & then creating the Project again.
Regards ... Chris
You have no option in project object to configure alternative "publish" folder.
Whenver all you PBL files reside in one folder you will never see this as an issue - because PBD files then end in same folder.