Re: Cleaning up tags Community Center Meta DaniWeb by Dani … to have a forum devoted to each language, and our catch-all forum for non-popular languages was proving not-so… Re: This Halloween: Are You Brave Enough to Face Roko's Basilisk? Community Center by soly_1 Although superintelligence and God are both considered "mighty entities," the devil is in the details. A superintelligence merely needs code; unlike supernatural beings, it doesn't require faith. The proof isn't found in antiquated literature, but rather in the quick developments in AI and machine learning. Though, in my opinion, the … Re: This Halloween: Are You Brave Enough to Face Roko's Basilisk? Community Center by olivia_24 It also assumes that said AI will be vindictive (like the gods). If the theory is correct, why would a sentient AI need to be vengeful once it has been created? In any case, there is still no evidence that machine consciousness it attainable. At least one engineer involved in the development of OpenAI has made claims about consciousness, but those … Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim …to send here $mail = new PHPMailer(TRUE); /* Open the try/catch block. */ try { /* Set the mail sender. */ $mail->…survey; /* Finally send the mail. */ $mail->send(); } catch (Exception $e) { /* PHPMailer exception. */ echo $e->errorMessage(); } ?>… Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner … to send here $mail = new PHPMailer(TRUE); /* Open the try/catch block. */ try { /* Set the mail sender. */ $mail->… = $survey; /* Finally send the mail. */ $mail->send(); } catch (Exception $e) { /* PHPMailer exception. */ echo "Message could not … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner …Then I added: $mail = new PHPMailer(TRUE); /* Open the try/catch block. */ try { /* Set the mail sender. */ $mail->…$mail->ErrorInfo; //}else{ // echo "Message sent!"; // } catch (Exception $e) { /* PHPMailer exception. */ echo "Message could not be… Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim … could also try taking the PHP out of the try - catch block to see if that helps, I have had odd… hidden behaviour in try catch blocks in different languages before, something like: $mail = new PHPMailer… Re: DomContentLoaded vs jQuery Ready fn Programming Web Development by jkon …", completed ); window.removeEventListener( "load", completed ); jQuery.ready(); } // Catch cases where $(document).ready() is called // after the browser event… Re: Improve HAVING BY performance Programming Databases by toneewa …() << " seconds\n"; Sleep(1000); delete con; } catch (sql::SQLException& e) { std::cerr << "SQL… Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner … the submitted information will send successfully. But here's the catch. While on the left side of the email address, anything… Re: catch Media Player Error Programming Software Development by Teme64 Catch the media player error [CODE=VB.NET]' Try to play … As Object, ByVal e As System.EventArgs) Handles AxWindowsMediaPlayer1.ErrorEvent ' Catch player errors Dim oErrorItem As WMPLib.IWMPErrorItem If CType(sender… catch without try Programming Software Development by nonshatter …); try { aSocket.setSoTimeout(4000); aSocket.receive(reply); } catch ( SocketTimeoutException e ) { faultCount++; continue; } catch ( IOException e ){} break; catch ( IOException e ) {} //----it doesn't like… catch CTRL C Programming Software Development by mehnihma … Exception Occurred ..."); } catch (InputMismatchException e) { System.… Exception Occured ..."); } /* catch (InterruptedException e) { e.printStackTrace();… Re: catch CTRL C Programming Software Development by DavidKroukamp ….printStackTrace(); System.out.println("Input Mismatch Exception Occured ..."); } */ catch(InterruptedException e) { // Restore the interrupted status Thread.currentThread().interrupt(); } } }[/CODE… Re: catch without try Programming Software Development by JamesCherrill The "break" on line 16 is outside any catch, so it terminates the list of catches associated with the previous try. So the catch on line 18 hasn't got a try to match to. Re: catch without try Programming Software Development by Cronless In addition to the "break" comment above, which is dead-on, you also can't catch the same exception twice in a try clause...you're catching IOException a second time after the break. Re: catch CTRL C Programming Software Development by mehnihma I got it, when I tryed it on PC, i was working on mac [CODE] catch (NoSuchElementException e) { System.out.println("CTRL C Program stops"); } [/CODE] Re: 'catch' without 'try' Programming Software Development by kunalboy …1st try.. it is called as the Unreachable code problem. catch (Exception e) is a method of the exception class … all exceptions. so this method shold come as last catch.... if it comes b4 other catches other catches will …be ignored as catch (Exception e) statement handles all exceptions... so you get… 'catch' without 'try' Programming Software Development by mimsc …} else { pageError = true; } }catch(Exception e){ request.setAttribute("pageError","…domainName); userData = UserInfoDAO.getUserInfo(domainName); } catch(Exception e) { System.out.println(e.getMessage… catch without try error Programming Web Development by mimsc …} else { pageError = true; } }catch(Exception e){ request.setAttribute("pageError","…domainName); userData = UserInfoDAO.getUserInfo(domainName); } catch(Exception e) { System.out.println(e.getMessage… Catch CrLf Characters Programming Software Development by gspeedtech … been affected. The question is: Should I add code to catch the CrLf characters at the field level? Should I add… code to catch and possibly correct the data before it is uploaded to… SQL? Should I modify the upload to catch CrLf characters and possibly correct the data in the upload… Re: Catch dropped streamreader conn. Programming Software Development by sknake …it or not you do not want to catch the exception in this method. Here is the…Stream>)result.AsyncDelegate; try { action.EndInvoke(ar); } catch (Exception Ex) //The stream read error is handled here from…]BeginRead[/icode] will be handled in the [icode]catch (Exception Ex)[/icode] of [icode]EndRead()[/icode]. It… Re: 'catch' without 'try' Programming Software Development by mimsc my bad...Im getting a "catch without try"..and all my brackets seem to be lined up...im thinking its somewhere between lines 163-185..not sure whats wrong though...I'll try posting in the other spot...sorry bout that Re: 'catch' without 'try' Programming Software Development by Hamrick … point it out? Lines 163-185 don't contain a catch at all. This is a syntax error so it should… Re: 'catch' without 'try' Programming Software Development by mimsc unfortunately this is what I get: org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP PWC6199: Generated servlet error: string:///cp_002dfrontpage_jsp.java:300: 'catch' without 'try' Re: 'catch' without 'try' Programming Software Development by Hamrick It says line 300. That's probably right where the offending catch is and you can look back up to find the matching try. I'd help, but I don't have a way of matching the error's line 300 to the line numbers in the code you posted. Catch dropped streamreader conn. Programming Software Development by benkyma … stops and this makes my program crash. How can I catch this situation when it occurs, and maybe attempt to reconnect… 'while' loop and I'm not sure how I can catch it... Re: catch C++ DLL exception Programming Software Development by carey_amanda …1, 1, 0); // C++ call, i did DLLimport. } catch (System.Runtime.CompilerServices.RuntimeWrappedExceptionex) { MessageBox.Show(ex.Message); } Messagebox….OK,MessageBoxIcon.Information); }[/CODE] The catch is not able to catch the exception. So when is it … Re: Catch CrLf Characters Programming Software Development by codeorder … a line break, like vbNewLine. See if this helps to catch the CrLf. [CODE] Dim sTemp As String = "some"… Re: Catch CrLf Characters Programming Software Development by gspeedtech Thanks codeorder! I tried your suggestion, but for some reason it does not catch the Crlf.