cs_tulesais
Messages postés175Date d'inscriptionmercredi 2 juin 2004StatutMembreDernière intervention11 avril 2013
-
27 nov. 2007 à 15:19
cs_tulesais
Messages postés175Date d'inscriptionmercredi 2 juin 2004StatutMembreDernière intervention11 avril 2013
-
28 nov. 2007 à 08:00
Bonjour,
j'ai un projet qui fonctionnait très bien jusqu'à la mise en place d'un nouveau module.
Suite à l'ajout de ce nouveau module, l'Exécution avec compilation complète se lance sans soucis !
Le problème apparaît lors de la génération de l'exécutable :
cette génération dure environ 10 minutes et bouffe toutes les ressources UC et dépasse les 1giga de mémoire.
Malgré tout, j'obtiens un exe de 5mo qui fonctionne parfaitement !
Avant l'ajout de ce module, l'exe se généré en quelques secondes et faisait ~4mo.
Qu'en pensez vous ? y a t'il une limite dans vb du nombre de lignes de codes ?
cs_tulesais
Messages postés175Date d'inscriptionmercredi 2 juin 2004StatutMembreDernière intervention11 avril 20132 28 nov. 2007 à 08:00
Casy ... tu viens de toucher le point sensible !!!
le module utilise un tableau dynamique ... hors normes (bien entendu, le code doit pouvoir être optimisé...) !
Merci beaucoup à tous pour votre aide !!!
ps : pour info, je gère une entreprise, qui peut contenir plusieurs établissements, qui peuvent contenir plusieurs salariés, qui peuvent avoir plusieurs période d'inactivitées. je crois que c'est tout :-)
Public Type ExcelInactivite
Sal_InacMot As String
Sal_InacDeb As String
Sal_InacFin As String
Sal_InacCode As String
Sal_InacUnit As String
Sal_InacTemps As String
End Type
Public Type ExcelSal
Sal_CodeEmp As String
Sal_CodeRegObg As String
Sal_CodeRegPat As String
Sal_CodeRegSal As String
Sal_SS As String
Sal_CodeStatut As String
Sal_CodeStatutCat As String
Sal_CodeDroit As String
Sal_CPN As String
Sal_Cadre As String
Sal_Nom As String
Sal_Prenom As String
Sal_NomMarital As String
Sal_PerDeb As String
Sal_PerDebMot As String
Sal_PerDebMot1 As String
Sal_PerDebMot2 As String
Sal_PerDebMot3 As String
Sal_PerDebMot4 As String
Sal_PerDebMot5 As String
Sal_PerFin As String
Sal_PerFinMot As String
Sal_PerFinMot1 As String
Sal_PerFinMot2 As String
Sal_PerFinMot3 As String
Sal_PerFinMot4 As String
Sal_PerFinMot5 As String
Sal_CodeAct As String
Sal_Temps As String
Sal_TempsUnit As String
Sal_Decal As String
Sal_BaseBrute As Long
Sal_BaseLimitee As Long
Sal_CodeTypeBases As String
Sal_MtBrutesSpec As Long
Sal_MtLimiteesSpec As Long
Sal_MtIndemnBrutes As Long
Sal_MtIndemnLimitees As Long
Sal_Total As Long
Sal_TA As Long
Sal_Reconstitue As Long
Sal_Forfaitaire As Long
Sal_CodeSit As String
Sal_Isolee As Long
Sal_Isolee_Exo As String
Excel_Inactivite() As ExcelInactivite
End Type
Public Type ExcelEtab
Etab_Nic As String
Etab_Adh As String
Excel_Sal() As ExcelSal
End Type
Public Type ExcelEnt
Ent_Siren As String
Ent_RS As String
Ent_Decl As String
Ent_PerDeb As String
Ent_PerDeb3 As String
Ent_PerDeb6 As String
Ent_PerFin As String
Ent_PerFin3 As String
Ent_PerFin6 As String
Excel_Etab() As ExcelEtab
End Type