Probleme mit ReportPro2 Integration in eigene Applikation

Deutschsprachiges X#-Forum – German language forum

Moderator: wriedmann

Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

Probleme mit ReportPro2 Integration in eigene Applikation / Problem gelöst

Post by Karl-Heinz »

Hi Wolfgang,

Evtl. verstehe ich in diesem Kontext etwas falsch, aber _Init procs werden (weiterhin) ausgeführt.

Ich habe eine VO-Dialect DLL mit diesem Inhalt erstellt.

Code: Select all

PROCEDURE __MyInit3 _INIT3
	  
	? "Dllinit3"            
	
	RETURN 
	
PROCEDURE __MyInit2 _INIT2 
	
   ? "Dllinit2"
	
RETURN	

PROCEDURE __MyInit1 _INIT1 

   ? "Dllinit1"

RETURN

Einer App dann die DLL Referenz hinzugefügt und diesen Code ausgeführt.

Code: Select all

PROCEDURE __MyInit3 _INIT3
	  
	? "AppInit3"            
	
	RETURN 
	
PROCEDURE __MyInit2 _INIT2 
	
	? "AppInit2"  
	
RETURN	

PROCEDURE __MyInit1 _INIT1 

	? "AppInit1"  
   

RETURN

FUNCTION Start( ) AS VOID 
	?
	? "Start() Done" 
	?

RETURN

angezeigt wird dann:

Dllinit1
AppInit1
Dllinit2
AppInit2
Dllinit3
AppInit3

Start() Done



Gruß
Karl-Heinz
User avatar
Heinrich
Posts: 33
Joined: Wed Feb 10, 2016 4:44 pm

Probleme mit ReportPro2 Integration in eigene Applikation

Post by Heinrich »

Hallo Karl

Das Problem tritt erst dann auf, wenn man _INIT Prozeduren in einer DLL hat, welche nicht in der Startapplikation referenziert werden.

Also StartApp -> DLL1 -> DLL2
Wobei die StartApp nur die Referenz auf DLL1 hat und DLL1 eine Referenz auf DLL2

Gruss Heinrich
Attachments
DllTest2.png
DllTest2.png (44.15 KiB) Viewed 146 times
DllTest1.png
DllTest1.png (42.29 KiB) Viewed 146 times
Post Reply