
Wed, 01/11/2012 - 20:05
Forums:
Hi
When I try to save a document by
app->SaveAs(doc,filename,error)
It shows:
Resource Manager Warning: Environment variable "CSF_CharSetDefaults" not set.
Resource Manager Warning: Environment variable "CSF_CharSetUserDefaults" not set.
How can I fix this?
Thanks.
Sean
Thu, 01/12/2012 - 20:52
Anybody? Thanks.
Sean
Sat, 01/28/2012 - 01:15
Sorry. Could anybody give me a hint?
Thanks.
Sean
Mon, 01/30/2012 - 13:50
Hi sean,
if you have set the "CSF_ResourceVerbose" variable, you can unset this env.
Or you can create a file with the information it needs.
Have a look at the Resource_Manager.cxx constructor line 54-85.
Resource_Manager::Resource_Manager(const Standard_CString aName,
const Standard_Boolean Verbose) : myName(aName), myVerbose(Verbose)
{
Debug = (getenv("ResourceDebug") != NULL) ;
TCollection_AsciiString EnvVar, CSF_ = "CSF_" ;
TCollection_AsciiString Directory ;
Standard_CString dir ;
if ( getenv ("CSF_ResourceVerbose") != NULL )
myVerbose = Standard_True;
EnvVar = CSF_ + aName + "Defaults" ;
if ((dir = getenv (EnvVar.ToCString())) != NULL) {
Directory = dir;
Load(Directory,myName,myRefMap);
}
else
if (myVerbose)
cout << "Resource Manager Warning: Environment variable \"" << EnvVar
<< "\" not set." << endl;
EnvVar = CSF_ + aName + "UserDefaults" ;
if ((dir = getenv (EnvVar.ToCString())) != NULL) {
Directory = dir;
Load(Directory, myName, myUserMap);
}
else
if (myVerbose)
cout << "Resource Manager Warning: Environment variable \"" << EnvVar
<< "\" not set." << endl;
}
How you can see this message will only displayed if CSF_ResourceVerbose != Null.
Regards
Alex