runtime-error

PHP runtime error

这一生的挚爱 提交于 2019-12-02 10:52:40
I'm programming PHP for some time. I use an Windows XP SP3 with PHP 5.4 , SQlite 3 , Apache 2.4 as a development environment. The remote host server (not mine) is a Windows Server 2008 with PHP 5.3 , Apache 2.2 , IIS 7.0 and SQL Server 2008 . My editor is the simple and wonderful EditPlus . Concerning Javascript it's nice because of Firefox plus the great add-on FireBug , which allows for complete HTML + CSS + Javascript debugging. My problem is PHP error management in my development environment (my personal machine). The PHP syntax errors typically appear ok with line number and so on,

How can a large number of assignments to the same array cause a pyopencl.LogicError when run on GPU?

我们两清 提交于 2019-12-02 10:38:03
问题 I'm using pyOpenCL to do some complex calculations. It runs fine on CPU, but I get an error when trying to run it on an NVIDIA GeForce 9400M (256 MB). I'm working on Mac OS X Lion (10.7.5) The strange thing is that this error does not always show up. It seems to occur when my calculations use larger numbers (resulting in larger iterations) but only when run on GPU. I'm not writing to memory locations I'm not supposed to write to. I ruled out possible problems with concurrent modification by

Why am I getting an exception?

╄→尐↘猪︶ㄣ 提交于 2019-12-02 08:56:11
问题 Please help. I get this error after the prompts from the Scanner are displayed to the console: Exception in thread "main" java.util.IllegalFormatPrecisionException: 2 at java.util.Formatter$FormatSpecifier.checkInteger(Unknown Source) at java.util.Formatter$FormatSpecifier.<init>(Unknown Source) at java.util.Formatter.parse(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.io.PrintStream.format(Unknown Source) at java.io.PrintStream.printf(Unknown Source) at Project6.main

End of Record error when saving a variable

ぃ、小莉子 提交于 2019-12-02 08:08:03
问题 I'm having a runtime error when I run a code that works without problems using a different computer. I'm wondering if the problem is the Fortran compiler of this machine (GCC 4.9.2) since the former computer used a previous version. The issue comes when defining a variable like this: In a module I define character(30),allocatable,save :: sceneclass(:) Then in the subroutine sceneclass is defined according to character(30) surf, frac, scene allocate(sceneclass(10)) do i=1,10 write(sceneclass(i

Keep getting error “Can't locate Image/Grab.pm in @INC” after installing the Perl mod

↘锁芯ラ 提交于 2019-12-02 07:45:13
问题 I'm a bit new to programming and I'm having some trouble writing a Perl script that will grab all the images from a webpage and save them in a specified directory. Here's my code: use warnings; use strict; use lib '/home/User1/strawberry/cpan/build'; use Image::Grab; $pic = Image::Grab->new(SEARCH_URL=>'http://www.examplesite.com', REGEXP =>'.*\.gif|.*\.jpg'); my $dir = 'images'; opendir (IMG, ">>$dir") || die "Directory doesn't exist - $!\n"; foreach ($pic) { print IMG "$_\n"; } closedir IMG

Run Time Error 13: Type Mismatch

 ̄綄美尐妖づ 提交于 2019-12-02 07:29:17
问题 I am having a problem with the following code and am getting a type mismatch error on the bolded line of code: Private Sub CommandButton3_Click() Application.ScreenUpdating = False Dim p Dim ActivePrinter Dim Sheets p = Application.ActivePrinter ActivePrinter = ("Send to OneNote 2010") **Sheets(Array("R-Overview", "R-Savings", "R-Table")).PrintOut , , 1** End Sub 回答1: You cannot create/pass the array like this. Try this ( TRIED AND TESTED ) Private Sub CommandButton3_Click() Application

How can a large number of assignments to the same array cause a pyopencl.LogicError when run on GPU?

。_饼干妹妹 提交于 2019-12-02 07:13:17
I'm using pyOpenCL to do some complex calculations. It runs fine on CPU, but I get an error when trying to run it on an NVIDIA GeForce 9400M (256 MB). I'm working on Mac OS X Lion (10.7.5) The strange thing is that this error does not always show up. It seems to occur when my calculations use larger numbers (resulting in larger iterations) but only when run on GPU. I'm not writing to memory locations I'm not supposed to write to. I ruled out possible problems with concurrent modification by running the code as a single work item. I simplified my OpenCL code as much as possible, and from what

Why is my program catching / throwing a FileNotFoundException when the file exists?

你。 提交于 2019-12-02 06:19:06
问题 Java newbie here! I'm writing a program to practice reading input and writing output to files. I've finished coding the program, but when I run it, the program just catches and proceeds with a FileNotFoundException. The file is in the source folder for the program, and I've even tried placing it in every folder related to the program. I've tried: Declaring the exceptions in the method header Surrounding the section-in-question with a try/catch block. Both of the above together. Here's the

Keep getting error “Can't locate Image/Grab.pm in @INC” after installing the Perl mod

。_饼干妹妹 提交于 2019-12-02 06:05:49
I'm a bit new to programming and I'm having some trouble writing a Perl script that will grab all the images from a webpage and save them in a specified directory. Here's my code: use warnings; use strict; use lib '/home/User1/strawberry/cpan/build'; use Image::Grab; $pic = Image::Grab->new(SEARCH_URL=>'http://www.examplesite.com', REGEXP =>'.*\.gif|.*\.jpg'); my $dir = 'images'; opendir (IMG, ">>$dir") || die "Directory doesn't exist - $!\n"; foreach ($pic) { print IMG "$_\n"; } closedir IMG; This is the error I get when I run the script in PuTTY: Can't locate Image/Grab.pm in @INC (@INC

Why am I getting an exception?

丶灬走出姿态 提交于 2019-12-02 05:46:35
Please help. I get this error after the prompts from the Scanner are displayed to the console: Exception in thread "main" java.util.IllegalFormatPrecisionException: 2 at java.util.Formatter$FormatSpecifier.checkInteger(Unknown Source) at java.util.Formatter$FormatSpecifier.<init>(Unknown Source) at java.util.Formatter.parse(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.io.PrintStream.format(Unknown Source) at java.io.PrintStream.printf(Unknown Source) at Project6.main(Project6.java:56) Is the problem coming from the printf? I've checked the formatting, and it looks