The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Compile system files opening project command line
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 02/05/2004 :  11:56:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cpyang

USA
1406 Posts

Posted - 02/05/2004 :  5:17:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Go to Top of Page

peter.cook

UK
356 Posts

Posted - 02/05/2004 :  5:57:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

Gary Lane

USA
150 Posts

Posted - 02/12/2004 :  3:18:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

peter.cook

UK
356 Posts

Posted - 02/13/2004 :  04:04:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

Gary Lane

USA
150 Posts

Posted - 02/13/2004 :  10:01:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000