| | |
execution comes from catch to try
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jan 2008
Posts: 2,052
Reputation:
Solved Threads: 122
i have the following code :
for the first time in my life i see that after executing catch it comes back to try and starts infinite loop. Any explanation?
C# Syntax (Toggle Plain Text)
static IScanningService scanningLayer = null; public static IScanningService BarcodeReader { get { if (scanningLayer == null) { string serviceName = GetServiceName(); try { if (deviceService == null) deviceService = Assembly.Load(serviceName); object o = deviceService.CreateInstance(serviceName + ".BarcodeReader"); scanningLayer = o as IScanningService; scanningLayer.AutoStartScan = Global.device.AutoStartScan; scanningLayer.PauseTime = Global.device.PauseTime; scanningLayer.ScanTime = Global.device.ScanTime; } catch (Exception ex) { if (ex.InnerException == null) { ErrorForm err = new ErrorForm(); err.ShowDialog(); //MessageBox.Show(ex.Message); //throw new ApplicationException( // string.Format(Properties.Resources.FailedToLoad, serviceName), ex); } //throw ex; } } return scanningLayer; } }
Due to lack of freedom of speech, i no longer post on this website.
Strange!! Did you debug it?
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
![]() |
Similar Threads
- Problem in measuring program execution time with c (C)
- mialing code execution is stoped at transport.send(msg) (Java)
- DataAdapter problem with MS-Access (C#)
- Creating a "Data" folder in my C: Drive using my Java program (Java)
- C++: Exception: Out of order execution? (C++)
- Else If statement (Java)
- Segmentation Fault when run in Linux but perfect compilation and execution in Windows (C)
- stopping an application execution (Java)
Other Threads in the C# Forum
- Previous Thread: Publish in C# Express
- Next Thread: Using an HWnd
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






