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
 NAG_FREE not found
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cyberjuda

Germany
Posts

Posted - 11/03/2009 :  05:13:31 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

cyberjuda

Germany
Posts

Posted - 11/03/2009 :  1:40:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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!

Go to Top of Page

Iris_Bai

China
Posts

Posted - 11/03/2009 :  10:38:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

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

Iris
Go to Top of Page

a.abc.b35

175 Posts

Posted - 11/14/2010 :  8:46:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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