Archived
This forum has been archived. Please start a new discussion on GitHub.
Console and Win Form program difference?
in Help Center
I build a class in a Dll project and it is used by a Console program and a win form program. In console program this class runs very good but in win form program, I run into null communicator problem.
Ice.Communicator m_IceCom = Ice.Application.communicator();
//this line in win form always return null but not in Console program.
Why ?
Thanks for advice.
Chang
Ice.Communicator m_IceCom = Ice.Application.communicator();
//this line in win form always return null but not in Console program.
Why ?
Thanks for advice.
Chang
0
Comments
-
Console and Win Form program difference?
never mind,
I find the problem.
When I called the class, the args was passed as null string array. Even I did not have any args needed.
When passed as
string[] args={""};
the call Class.main(args, configfilepath);
works.
But I do think if args=null, Ice.Application.main should know how to process it--just ignor them!
Chang0