open testdata.gdb general function failure.

3366
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;
  }
0 Kudos
1 Reply
LanceShipman
Esri Regular Contributor
You are doing nothing wrong. "TestData.gdb" has a problem and has been updated for final.
0 Kudos