#1
Posted
:
Tuesday, March 31, 2015 5:40:12 PM(UTC)
Groups: Registered
Posts: 5
after i use Leadtools.RasterSupport.SetLicense("xxx","xxx") unlock liscense in Wpf project,when i edit a wcf
winodow include RasterImageViewer control,
sometimes have "xxx expired" dialog.
ps:in winform project is ok.
c# code:
i have login and mainwindow wondows,i use
Leadtools.RasterSupport.SetLicense("xxx","xxx") method both in login and mainwindow load event
public class Program : Application
{
private static Mutex mutex = null;
[STAThread]
static void Main()
{
string mutexStr = "test";
try
{
mutexStr = string.Format("{0}-{1}", Utils.Config.ConfigFactory.GetInstance().ConfigInfo.SysTitle, Utils.Config.ConfigFactory.GetInstance().ConfigInfo.SysEnvironment);
bool isRunning = false;
mutex = new Mutex(true, mutexStr, out isRunning);
if (isRunning)
{
Application currrentApp = new Application();
currrentApp.ShutdownMode = ShutdownMode.OnExplicitShutdown;
Login login = new Login();
login.ShowDialog();
bool? dialogResult = login.DialogResult;
if (dialogResult == true)
{
MainWindow main = new MainWindow();
currrentApp.Run(main);
}
}
else
{
MessageBox.Show("系统程序已经运行!");
System.Environment.Exit(0);
}
}
catch (Exception ex)
{
MessageBox.Show("加载配置信息出错,错误信息:" + ex.Message);
}
}
}
#2
Posted
:
Wednesday, April 1, 2015 8:39:48 AM(UTC)
Groups: Registered, Tech Support
Posts: 26
Michael,
To further investigate this issue, please send an email to
support@leadtools.com with your serial number (note: DO NOT post it here) and your license and KEY files. In your email, refer to this forum post.
Faris Shahin
Developer Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.