| | |
execution comes from catch to try
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
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 animation array asp avltree bitmap box c# check checkbox client column combobox control conversion csharp database datagrid datagridview datagridviewcheckbox dataset datetime degrees directrobot display draganddrop drawing encryption enum equation excel file form format formatting formbox forms formupdate function gdi+ hash image input install java leak linux list math mouseclick mp3 mysql namevaluepairs native networking operator packaging path photoshop picturebox pixelinversion post powerpacks print process programming radians regex remoting reporting richtextbox robot safari server sleep snooze socket sql statistics string table tables tcp text textbox thread time timer update usercontrol usercontrols validation visualstudio webbrowser wfa winforms wpf xml






