-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPylonLiveView.cs
More file actions
36 lines (35 loc) · 979 Bytes
/
Copy pathPylonLiveView.cs
File metadata and controls
36 lines (35 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using PylonC.NET;
namespace PylonLiveView
{
static class PylonLiveView
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
#if DEBUG
/* This is a special debug setting needed only for GigE cameras.
See 'Building Applications with pylon' in the Programmer's Guide. */
Environment.SetEnvironmentVariable("PYLON_GIGE_HEARTBEAT", "300000" /*ms*/);
#endif
Pylon.Initialize();
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
catch
{
Pylon.Terminate();
throw;
}
Pylon.Terminate();
}
}
}