T O P I C R E V I E W |
peter.cook |
Posted - 02/05/2004 : 11:56:50 AM Hi,
Opening a project file via the command line (eg just untitled) appears to cause system files to recompile but not via file open. Should this be the case / what is happening here?
Thanks,
Cheers,
pete
|
5 L A T E S T R E P L I E S (Newest First) |
Gary Lane |
Posted - 02/13/2004 : 10:01:28 AM Hi Pete,
I think you will be all set with compilation occuring when needed...but we will watch this closely to see if any problems come up.
As I understand it the second thread allows users to use non-Origin C areas of Origin while the system files are compiling (in the second thread). For example, try selecting the [b]File:Open[\b] menu item (which is LabTalk based) sometime while the "Compiling System Files" progress box is running.
Gary OriginLab
|
peter.cook |
Posted - 02/13/2004 : 04:04:29 AM Hi Gary,
Thanks for informative reply. No there doesn't seem to be a problem then - in view of a discussion we had about the two threads with command line open opj (I still don't see the real benefit here though...) I wanted to double-check that all compilation was done before AfterOpenDoc AND that dialog would not appear for SR2 (just a user friendly issue here).
Cheers,
Pete
|
Gary Lane |
Posted - 02/12/2004 : 3:18:21 PM Hi Pete,
I do not think there is a problem here...unless I am misunderstanding something.
If you open a project file by command line the sysetm files compile, load, and link because Origin is launching. In addition, any source files attached to the project file specified on the command line are also compiled, loaded, and linked because the project file is being opened.
If you select the File:Open menu item the system files are by definition already compiled, loaded, and linked and are ready to be executed. If the the newly opened project file happens to contain any attached source files needing compilation they are compiled, loaded, and linked to the already compiled and loaded system files. The system files do not need to be compiled or loaded when a file is opened because they remain loaded....they just need to be re-linked.
Thus, as indicated in Case5 of Topic ID 2828, the event handlers BeforeSystemCompile and AfterSystemCompile do not trigger because the events do not happen. Nonetheless, functions in all system files should be loaded, linked, and ready to execute after opening a new project file.
Let me know if I am misunderstanding something or if there really is a problem here. Gary OriginLab
Edited by - Gary Lane on 02/12/2004 3:30:05 PM |
peter.cook |
Posted - 02/05/2004 : 5:57:51 PM Hi CP,
Thanks for reply.
So, dialog will be hidden and this event will occur before project opens as per TOPIC_ID=2828... Does this still mean compiling will be in a different thread even though is now before project opens. just wanted to check there is no scope for system c functions not being compiled before project opens.
Cheers,
pete
|
cpyang |
Posted - 02/05/2004 : 5:17:13 PM we can hide that dialog. It is showing evenever Origin needs to compile system files in the main thread, which is only the case if command line OPJ open.
CP Originlab
|
|
|