0

I create new MS Access database using the following (C++ Builder XE2):

CatalogPtr cat = CoCatalog::Create();
cat->Create(strConn.c_bstr());

The problem is that lock file is created and I want to delete it. I know I need to release the "cat" object but

cat->Release();

don't work and crashes my app. I also tried

cat->ActiveConnection = NULL;

before relase but no effect.. What to do?

Tracer
  • 2,544
  • 2
  • 23
  • 58

1 Answers1

0

You shouldn't call Release function, It automatically is called by CatalogPtr destructor.

mh taqia
  • 3,506
  • 1
  • 24
  • 35