Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

msigetdatabasestate bug ?


1 reply to this topic

perri.potez

perri.potez
  • Members
  • 18 posts

Posted 06 August 2002 - 12:40

If I do:
a=MsiGetActiveDatabase(hInstall);
b=MsiDatabaseOpenView(a,sz_sql,&hPView);
c=MsiGetDatabaseState(hDatabase);

a => no error
b => no error
c => MSIDBSTATE_ERROR = invalid handle !

So my view is created using the database handle and
it tells me that my database handle is invalid ?
Someone understand this or this is a bug of MsiGetDatabaseState ?

thanks.

hteichert

hteichert
  • Members
  • 158 posts

Posted 27 August 2002 - 10:17

Copy and paste from the documentation is sometimes tricky:

a=MsiGetActiveDatabase(hInstall);
b=MsiDatabaseOpenView(a,sz_sql,&hPView);
c=MsiGetDatabaseState(hDatabase);

I think you wanted to type:

c=MsiGetDatabaseState(a);
h.teichert-ott