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
 ocmath_derivative causing crash
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Tim82

Russia
2 Posts

Posted - 02/26/2013 :  03:58:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.6
Operating System: Win7

I have two columns (theta,ksi) and want to make a third column with ksi derivative. Calling ocmath_derivative in the following code causes Origin to crash...

vector<double>& vec_theta = col_theta.GetDataObject();
vec_ksi = col_ksi.GetDataObject();
vector<double>& vec_out = col_out.GetDataObject();

for ( int j = 0; j < vec_ksi.GetSize(); j++ )
vec_out.Add( vec_ksi[j] );

ocmath_derivative( vec_theta, vec_out, vec_theta.GetSize() );


Please help!

Penn

China
644 Posts

Posted - 02/26/2013 :  10:21:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

It seems a bug in Origin 8.6. I have tried in the current version, 9.0 SR1, it works and no crash. So, this bug should be fixed. You can download a demo version of 9.0 from this page to have a try.

Penn
Go to Top of Page

Tim82

Russia
2 Posts

Posted - 02/27/2013 :  04:04:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Penn,

Thanks for your time and help! I tried it and it worked without any problems. Now, I am sure this is a problem of 8.6.
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