From 17dcb43683e2285c052c55df3a250d0983c9515d Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 27 Jan 2025 18:18:00 +0100 Subject: [PATCH] =?UTF-8?q?EgtExecutor=202.7a3=20:=20-=20il=20caricamento?= =?UTF-8?q?=20di=20EgtExch3dm.dll=20non=20avviene=20pi=C3=B9=20all'avviame?= =?UTF-8?q?nto,=20ma=20viene=20rinviato=20alla=20prima=20chiamata=20(impor?= =?UTF-8?q?t/export=20di=20file=203dm).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EXE_Exchange.cpp | 10 ++++++++-- EXE_General.cpp | 5 ++--- EgtExecutor.rc | Bin 18890 -> 18890 bytes 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/EXE_Exchange.cpp b/EXE_Exchange.cpp index 0b2b413..853c666 100644 --- a/EXE_Exchange.cpp +++ b/EXE_Exchange.cpp @@ -449,8 +449,11 @@ ExeImport3dm( const string& sFilePath) { GseContext* pGseCtx = GetCurrGseContext() ; VERIFY_CTX_GEOMDB( pGseCtx, false) - bool bOk = true ; + // se necessario, carico libreria exchange 3dm opzionale + if ( ! IsLoadedExch3dmDll() && LoadExch3dmDll( GetLogger(), ExeGetKey(), ExeGetNetHwKey())) + LOG_INFO( GetLogger(), MyGetEE3Version()) // importo il file 3dm + bool bOk = true ; // preparo l'importatore PtrOwner pImp3dm( MyCreateImport3dm()) ; bOk = bOk && ! IsNull( pImp3dm) ; @@ -678,8 +681,11 @@ ExeExport3dm( int nId, const string& sFilePath, int nFilter) { IGeomDB* pGeomDB = GetCurrGeomDB() ; VERIFY_GEOMDB( pGeomDB, false) - bool bOk = true ; + // se necessario, carico libreria exchange 3dm opzionale + if ( ! IsLoadedExch3dmDll() && LoadExch3dmDll( GetLogger(), ExeGetKey(), ExeGetNetHwKey())) + LOG_INFO( GetLogger(), MyGetEE3Version()) // esporto il file 3dm + bool bOk = true ; // preparo l'esportatore PtrOwner pExp3dm( MyCreateExport3dm()) ; bOk = bOk && ! IsNull( pExp3dm) ; diff --git a/EXE_General.cpp b/EXE_General.cpp index 29cd10a..8e6280e 100644 --- a/EXE_General.cpp +++ b/EXE_General.cpp @@ -118,9 +118,8 @@ ExeInit( int nDebug, const string& sLogFile, const string& sLogMsg) if ( LoadExchangeDll( s_pGenLog, s_sKey, s_bNetHwKey)) LOG_INFO( s_pGenLog, MyGetEExVersion()) - // carico libreria exchange 3dm opzionale - if ( LoadExch3dmDll( s_pGenLog, s_sKey, s_bNetHwKey)) - LOG_INFO( s_pGenLog, MyGetEE3Version()) + // la libreria exchange 3dm opzionale viene caricata solo al momento del bisogno + // (è molto lento il caricamento di OpenNurbs) // carico libreria di lavorazione opzionale if ( LoadMachKernelDll( s_pGenLog, s_sKey, s_bNetHwKey)) diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 56c1f625d77db9e807723954d0a353256bb38591..417933e31d86302b78397f0f7245b9b3bf44829f 100644 GIT binary patch delta 249 zcmX>#neo(Q#trM3wOtwV7}6PX7%~}(88R3Y7&I6{fg+ghlj4}o{f@#neo(Q#trM3)jb*V7}6PX7*ZLEfmne-gCUrqgdq`#Gl9HNpll|Hz4<1yA~U1W z=HG0tAj*+zISZI~oN4j~!74_h$&OsfoBM=pK%%F`z-k1g5Na9}VQS)(_~ePTbn;DR v>B%45mQCh!STy;UlYn48*nys42j&1BmIzeQx_OSX4l`CM>CGS9ZZQD>qK-hl