| | |
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: 118
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 |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom customactiondata database datagrid datagridview dataset date/time datetime datetimepicker degrees development dll draganddrop drawing encryption enum event excel file filename files form format forms function gdi+ gis gtk hash httpwebrequest image index input install java label list listbox mandelbrot math mouseclick mysql operator outlook2003 path photoshop picturebox pixelinversion pixelminversion post programming radians regex remote remoting richtextbox server sleep socket sql statistics stream string table tables tcp text textbox thread time timer tutorial update usercontrol usercontrols validation visualstudio webbrowser webcam wia windows winforms wpf xml






