If PrefDic.value("DatabaseCache")>1 then
Valentina.Init(PrefDic.value("DatabaseCache")*1024*1024,VC,"")
else
Valentina.Init(DatabaseMinimumCache*1024*1024,VC,"")
end if
Valentina.SetExtensions("", "", "", "ind")
this is called only once a time when App (OpenDocument Event in App) is started. But it seems this is called more often. I know I have to check this in my code. My question is an other.
How can I check whether valentina is already initialized and check this before the code is passed again and throws the error?
Can I check valentina=NIL or something else?
Thanks for help