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 for Programming
 Forum for Origin C
 Code builder : no execution
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Tryphon

36 Posts

Posted - 12/10/2015 :  10:58:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I use OriginPro 2015 (64-bit) Sr2 b9.2.272 under Windows 8.1 Pro 64-bit (recently purchased)

I try to learn Origin C as I cannot achieve enough speed under Labtalk. I used several examples from Origin help and I compiled them successfully including GetNBox_ex3. I was able to execute the functions in command line.

1) I tried many times to use the debug mode placing breakpoints according to this help : http://www.originlab.com/doc/Tutorials/OC-CodeBuilder

During execution, I never get any break.

2) To show a variable, I inserted a printf("%s",check); line in the GetNBox_ex3 code. After compiling and linking without error, I executed it and OriginPro crashed. I restarted OriginPro and Code Builder but now, whatever change I do in any program code, I get this message :
No changed files found. Choose Rebuild All if you want to recompile anyway.

I chose Rebuild All and tried to execute GetNBox_ex3 and I always get Command Error!

I am stuck and I do not know what to do.

Thank you.

Edited by - Tryphon on 12/10/2015 10:59:05 AM

jasonzhao

China
262 Posts

Posted - 12/11/2015 :  05:15:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,


You can paste your script here so we can run a test.

Best regards!
Jason
OriginLab Technical Service
Go to Top of Page

Castiel

343 Posts

Posted - 12/11/2015 :  06:30:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Tryphon

Hello,

I use OriginPro 2015 (64-bit) Sr2 b9.2.272 under Windows 8.1 Pro 64-bit (recently purchased)

I try to learn Origin C as I cannot achieve enough speed under Labtalk. I used several examples from Origin help and I compiled them successfully including GetNBox_ex3. I was able to execute the functions in command line.

1) I tried many times to use the debug mode placing breakpoints according to this help : http://www.originlab.com/doc/Tutorials/OC-CodeBuilder

During execution, I never get any break.

2) To show a variable, I inserted a printf("%d",check); line in the GetNBox_ex3 code. After compiling and linking without error, I executed it and OriginPro crashed. I restarted OriginPro and Code Builder but now, whatever change I do in any program code, I get this message :
No changed files found. Choose Rebuild All if you want to recompile anyway.

I chose Rebuild All and tried to execute GetNBox_ex3 and I always get Command Error!

I am stuck and I do not know what to do.

Thank you.



1) Make sure you have enabled breakpoints. See menu Debug->Enable Breakpoints. Also, try to avoid multi-line expression. Won't stop at the exact line.
2) Do not try to print in that way. Should be out_tree(tr.check) or printf("%s", tr.check.nVal)
3) Ctrl+W to add the current file to workspace. It was probably not saved when it crashed.

�c��   �ȥ�  �f�u�c  �c��    �Τ�  �c/     ����
 �c�ʥ� ����  �� ��   ����' �̩���   /��  �թ��f
   ��             ��          ����  �` ��   ��
                              ��

Edited by - Castiel on 12/11/2015 07:32:43 AM
Go to Top of Page

Tryphon

36 Posts

Posted - 12/15/2015 :  11:32:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Thank you, now it works. I continue my work. I will come back here in case the same issue arise.

Edited by - Tryphon on 12/15/2015 11:38:35 AM
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