The use of modules in Dll 's is not permitted because

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

The use of modules in Dll 's is not permitted because

Post by mk-soft »

The use of modules in Dll 's is not permitted because...
The declaration of arrays, lists or map with Dim, NewList or NewMap must always be done inside the procedure AttachProcess
Code

Code: Select all

DeclareModule MyModule
  Global name.s
  
  Global NewList Teste.s()
  Global Dim Daten.i(1000)
    
EndDeclareModule

Module MyModule
  
  Global NewList iData.i()
  
  Procedure InitModule()
    Protected index
    name.s = "Init My Module!"
    For index = 0 To 1000
      Daten(index) = index
    Next
  EndProcedure : InitModule()
  
EndModule
I think the description needs to be revised.
Codes in the module have to be executed within procedures
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive