[fdo-users] PROBLEMS TO OPEN A SESSION WITH OSGEODSF
operadorlab
lneri at pmcr.org.mx
Fri Jul 17 15:19:39 EDT 2009
Hi i have this error notice:
'acad.exe': Loaded 'C:\Windows\System32\actxprxy.dll'
The thread 'Win32 Thread' (0x1100) has exited with code 0 (0x0).
'acad.exe': Loaded 'C:\Windows\System32\ntmarta.dll'
'acad.exe': Loaded 'C:\Program Files\Common Files\Autodesk
Shared\AcSignCore16.dll'
'acad.exe': Loaded 'C:\Program Files\Microsoft
Office\Office12\GrooveSystemServices.dll'
'acad.exe': Loaded 'C:\Users\Usser3\Documents\Visual Studio
2008\Projects\ArxProject_fdo\Win32\Debug\ArxProject_fdo.arx', Symbols
loaded.
System.Windows.Media.Animation Warning: 6 : Unable to perform action because
the specified Storyboard was never applied to this object for interactive
control.; Action='Stop';
Storyboard='System.Windows.Media.Animation.Storyboard';
Storyboard.HashCode='61735358';
Storyboard.Type='System.Windows.Media.Animation.Storyboard';
TargetElement='Autodesk.Internal.Windows.ToolTip: Ortho Mode';
TargetElement.HashCode='18747312';
TargetElement.Type='Autodesk.Internal.Windows.ToolTip'
'acad.exe': Loaded 'C:\Program Files\AutoCAD Map 3D
2010\FDO\bin\SDFProvider.dll'
First-chance exception at 0x772a42eb in acad.exe: Microsoft C++ exception:
FdoConnectionException at memory location 0x1cfff490..
Unhandled exception at 0x772a42eb in acad.exe: Microsoft C++ exception:
FdoConnectionException at memory location 0x1cfff490..
My code is this:
FdoPtr<FdoProviderRegistry> registry = (FdoProviderRegistry
*)FdoFeatureAccessManager::GetProviderRegistry();
const FdoProviderCollection* providers = registry->GetProviders();
FdoStringP displayName;
FdoStringP internalName;
FdoPtr<FdoProvider> provider;
int count = providers->GetCount();
for(int i = 0; i < count; i++) {
provider = providers->GetItem(i);
internalName = provider->GetName();
displayName = provider->GetDisplayName();
//acutPrintf(displayName);
FdoStringP internalName = provider->GetName();
FdoPtr<FdoConnectionManager> connectMgr =
(FdoConnectionManager*)FdoFeatureAccessManager::GetConnectionManager();
FdoPtr<FdoIConnection> fdoConnection =
connectMgr->CreateConnection(L"OSGeo.SDF.3.4");
acutPrintf(internalName);
FdoPtr<FdoIConnectionInfo> info = fdoConnection->GetConnectionInfo();
FdoPtr<FdoIConnectionPropertyDictionary> ConnDict =
info->GetConnectionProperties();
///////////////////////////////////////////////////////////////////////////////////////////////////////
FdoInt32 count = 0;
FdoString ** names = NULL;
FdoStringP name;
FdoStringP localname;
FdoStringP val;
FdoStringP defaultVal;
bool isRequired = false;
bool isProtected = false;
bool isFilename = false;
bool isFilepath = false;
bool isDatastorename = false;
bool isEnumerable = false;
FdoInt32 enumCount = 0;
FdoString ** enumNames = NULL;
FdoStringP enumName;
names = ConnDict->GetPropertyNames(count);
for(int i = 0; i < count; i++) {
name = names[i];
val = ConnDict->GetProperty(name);
defaultVal = ConnDict->GetPropertyDefault(name);
localname = ConnDict->GetLocalizedName(name);
isRequired = ConnDict->IsPropertyRequired(name);
isProtected = ConnDict->IsPropertyProtected(name);
isFilename = ConnDict->IsPropertyFileName(name);
isFilepath = ConnDict->IsPropertyFilePath(name);
isDatastorename = ConnDict->IsPropertyDatastoreName(name);
isEnumerable = ConnDict->IsPropertyEnumerable(name);
if (isEnumerable) {
if (isRequired) {
enumNames = ConnDict->EnumeratePropertyValues(name, enumCount);
for(int j = 0; j < enumCount; j++) {
enumName = enumNames[j];
}
}
}
}
acutPrintf(name);
ConnDict->SetProperty(L"File",L"C:\Users\Usser3\Spark\user\lneri at geoware\downloads\World_Countries.sdf");
//ConnDict->SetProperty(L"World_Countries.sdf",L"myfile.sdf");
//fdoConnection->SetConnectionString(L"C:\Users\Usser3\Spark\user\lneri at geoware\downloads\World_Countries.sdf");
FdoStringP nombres;
nombres = fdoConnection->GetConnectionString();
acutPrintf(nombres);
FdoConnectionState state = fdoConnection->Open(); HERE IS WERE BREAK
??????????????????????????????????
FdoPtr<FdoICommandCapabilities> commandCapabilities =
fdoConnection->GetCommandCapabilities();
bool bSupportsCreateDatastore = false;
FdoInt32 numCommands;
FdoInt32 * commands = commandCapabilities->GetCommands(numCommands);
for(int i = 0; i < numCommands; i++) {
switch(commands[i]) {
case FdoCommandType_CreateDataStore : bSupportsCreateDatastore = true;
}
}
CAN YOU ANYONE HELP ME
--
View this message in context: http://n2.nabble.com/PROBLEMS-TO-OPEN-A-SESSION-WITH-OSGEODSF-tp3277277p3277277.html
Sent from the FDO Users mailing list archive at Nabble.com.
More information about the fdo-users
mailing list