Origin Version (Select Help-->About Origin): 7.5 SR6
Operating System: Win 2000
Hi,
The order of events on opening an Origin project with atached files should be :
OEvents Launch Sequence:
1.BeforeUserCNF
2.AfterUserCNF
3.BeforeCompileSystem
4.AfterCompileSystem
5.BeforeOpenDoc
6.BeforeCompileProject
7.AfterCompileProject
8.AfterOpenDoc
My problem is that all our opjs have attached files (.cnf, .ogs, .c, .op, .dll) and I am sure that the attached origin c code is not compiled before the section [afteropendoc] is run. The problem might be more significant with slower pcs, client server set up and when network is slow. This shouldn't be the case, and explains why users accessing customised menu functions have problems if they don't allow Origin time to compile (athough attached origin c files should have compiled by then). Some applications access databases on opening and display inconsistent results arising from this. I have to do a fix (now I've identified the problem) such as
loop(num,1,10) {
if(exist(OCfunction)==20) {
OCfunction;
break;
};
sec -p 1;
}
messy and I don't want to do this.
How can I resolve this problem and as an additional question what steps can I take to ensure fast as possible compiling and loading of attached code?
Cheers,
pete