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
 NAG_FREE not found

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
cyberjuda Posted - 11/03/2009 : 05:13:31 AM
Origin Ver. 8 and Service Release 2(Select Help-->About Origin):
Operating System: Windows XP Professional SP3

Hello again,

I seem to be having a small problem. I have been previously working with a custom made fit function with origin and was working great. Then I had to reinstall windows. So I backed up my origin settings folder and copied it back again after installing everything. I tried running the exact same script again and it gives me the following compile error.

compiling...
_nlfPWParameteric.fit
D:\Work\Origin Files\OriginC\NLSF\_nlfNewFunction.fit(110) :Error, function or variable NAG_FREE not found
D:\Work\Origin Files\OriginC\NLSF\_nlfNewFunction.fit(110) :Error, general compile error
D:\Work\Origin Files\OriginC\NLSF\_nlfNewFunction.fit(108) :Error, general compile error
D:\Work\Origin Files\OriginC\NLSF\_nlfNewFunction.fit(56) :Error, error(s) found in compiling function _nlsfNewFunction
Compile Failed!

So I thought that maybe something was wrong with my code. I tried using the tutorial given at http://wiki.originlab.com/~originla/howto/index.php?title=Tutorial:Fitting_with_Integral_using_NAG_Library and it also gave the exact same error.

Please help and thanks in advance!
3   L A T E S T    R E P L I E S    (Newest First)
a.abc.b35 Posted - 11/14/2010 : 8:46:10 PM
I tried using the tutorial given at http://wiki.originlab.com/~originla/howto/index.php?title=Tutorial:Fitting_with_Integral_using_NAG_Library and it gave me the following error:
.................
compiling...
_nlfnag_integration_fitting.fit
C:\..\NLSF\_nlfnag_integration_fitting.fit(108) :Error, function or variable NAG_FREE not found
C:\..\NLSF\_nlfnag_integration_fitting.fit(108) :Error, general compile error
C:\..\NLSF\_nlfnag_integration_fitting.fit(106) :Error, general compile error
C:\..\NLSF\_nlfnag_integration_fitting.fit(54) :Error, error(s) found in compiling function _nlsfnag_integration_fitting
Compile Failed!
..............
I than included the line '#define NAG_FREE(X) x04bdc((Pointer *)&(X))' below the '#include <origin.h>' and recompiled again and the problem was solved.i.e, compilation was successful.
Now my question is :
Given that I don't want to upgrade to the next service pack available, and if I include the above mentioned code line in all the subsequent codes,can I be assured that the memory allocation is freed before calling the integration routine again to avoid memory leakage ?

AB
Iris_Bai Posted - 11/03/2009 : 10:38:53 PM
Hi,

This is a bug in Origin8 SR2 and fixed now, please upgrade to SR6.

Iris
cyberjuda Posted - 11/03/2009 : 1:40:35 PM
The problem solved itself once I commented out few commands pertaning to NAG_FREE at the end of the script. I have no idea though if they are important or not.



quote:
Originally posted by cyberjuda

Origin Ver. 8 and Service Release 2(Select Help-->About Origin):
Operating System: Windows XP Professional SP3

Hello again,

I seem to be having a small problem. I have been previously working with a custom made fit function with origin and was working great. Then I had to reinstall windows. So I backed up my origin settings folder and copied it back again after installing everything. I tried running the exact same script again and it gives me the following compile error.

compiling...
_nlfPWParameteric.fit
D:\Work\Origin Files\OriginC\NLSF\_nlfNewFunction.fit(110) :Error, function or variable NAG_FREE not found
D:\Work\Origin Files\OriginC\NLSF\_nlfNewFunction.fit(110) :Error, general compile error
D:\Work\Origin Files\OriginC\NLSF\_nlfNewFunction.fit(108) :Error, general compile error
D:\Work\Origin Files\OriginC\NLSF\_nlfNewFunction.fit(56) :Error, error(s) found in compiling function _nlsfNewFunction
Compile Failed!

So I thought that maybe something was wrong with my code. I tried using the tutorial given at http://wiki.originlab.com/~originla/howto/index.php?title=Tutorial:Fitting_with_Integral_using_NAG_Library and it also gave the exact same error.

Please help and thanks in advance!


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