open testdata.gdb general function failure.

3169
1
04-01-2011 01:18 PM
eykim
by
New Contributor
Hello,

I've modified the sample source code Querying.cpp to open another database in the sample (TestData.gdb). I get the following error saying, "General function failure (-2147467259)". Can anyone tell me what I'm doing wrong here? Thanks for your help.

Here is my source code.
  fgdbError hr;
  wstring errorText;
  Geodatabase geodatabase;
  if ((hr = OpenGeodatabase(L"../data/TestData.gdb", geodatabase)) != S_OK)
  {
    wcout << "An error occurred while opening the geodatabase." << endl;
    ErrorInfo::GetErrorDescription(hr, errorText);
    wcout << errorText << "(" << hr << ")." << endl;
    return -1;
  }
Reply
0 Kudos
1 Reply
LanceShipman
Regular Contributor
You are doing nothing wrong. "TestData.gdb" has a problem and has been updated for final.
Reply
0 Kudos