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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 ocmath_derivative causing crash

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Tim82 Posted - 02/26/2013 : 03:58:07 AM
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!
2   L A T E S T    R E P L I E S    (Newest First)
Tim82 Posted - 02/27/2013 : 04:04:55 AM
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.
Penn Posted - 02/26/2013 : 10:21:35 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000