Hi,
Further on my current favourite topics of event handlers and opening old projects..
If a project is opened by double clicking, the error message 'Cannot find the file (or one of it's components). Make sure the path and filename are correct and that all libraries are available.' crops up on alternate openings. When this message occurs then the Origin logo displays, the [BeforeUserCNF], [AfterUserCNF] and [BeforeCompileSystem] are done. Origin appears to close but oddly enough the script window displays and functions. Closing the scriptwindow closes any instance of Origin, sort of. Origin appears in the processes for Windows task manager but not applications. On the alternate successful attempts, only the [AfterCompileSystem], [BeforeOpenDoc] and [AfterOpenDoc] are done but the project opens. What's going on here? Note that this is a slightly different order from when opj files are opened via a command line where precompile and postcompile are after postopen.
I was expecting to use OEvents to manage code on opening opj files but it's all starting to look a bit flaky now and really doesn't look well tested!
Cheers,
pete
|