Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

PB12.5 .NET PB Assembly problem

$
0
0

Hello, all

I seem to have stumbled on the following problem.

I have a PB assembly with common global variables and functions, which work fine in PB.NET apps and services.

 

However, when I try to initialize the COM object from another .NET assembly (PB.NET), the global variables (even strings) are not being instantiated.

 

So, if the PB Assembly has a global variable gs_var1 and a global function set_var1(string value),it works fine when called from a PB.NET app or a service, but not from another PB assembly. There is an error "object reference not set to an instance of an object" during this simple assignment.

 

Question: is this behavior by design, or is there a workaround for it?

 

Thank you,

Arcady


Viewing all articles
Browse latest Browse all 2935

Trending Articles