I've got some threads doing heavy work while my main thread handles the UI stuff. The threads callback to the main thread at times to update a progress bar.
All in all, it's not that stable. I've fixed problems relating to the logic, but one in particular persists. I've got some code that acts like a stop button, meaning that the thread...
Been looking for this on Google for a while, but still looking. Couldn't turn up anything on it.
Using PHP to query MS SQL Server via ODBC. Code is below: (I've watered it down to bare-bones as I've tried to debug this)
$SQL=<<<HEREDOC
DECLARE @weekStart SMALLDATETIME;
SET @weekStart = DATEADD(d,0, DATEDIFF(d,0,GETDATE()));
S...
I have the $validate variable in my model which contains:
var $validate=array(
"username" => array(
"usernameValid" => array(
"rule" => "__alphaNumericDashUnderscore",
"message" => "The username you entered is not valid!"
)
)
);
The question is: how do I return an error message from the __alphaNumericDashUnderscore...
I'm not sure why perl isn't recognizing the Heap's method add. Getting message given in question title. Here are the most relevant files.
#!/usr/bin/perl -w
use strict;
use Util;
use Heap;
use HuffTree;
my $heap = Heap->new;
my $test = 3;
$heap->add($test); # <--------ERROR HERE-----------
package Heap;
use strict;
use warnings;
...
I asked a question closely related to this awhile ago:
http://stackoverflow.com/questions/2878043/alternative-way-to-notify-the-user-of-an-error
In short, i was trying to find a quick and easy way to notify the user of errors without using popups.
Now i have implemented this using tooltip baloons. The problem is that even if i give it ...
Well the full error is
Error 3 'OfType' is not a member of 'System.Text.RegularExpressions.MatchCollection'
in the following lines of code, (curly braces in regex.Matches(input).OfType)
For Each group As Object In regex.Matches(input).OfType(Of Match)().Select(Function(c) c.Value.ToLowerInvariant()).Where(Function(c) Not keywords.Con...
Hi,
In my Service.h I have:
#include "Configuration.h"
and in my class:
private:
ConfigurationInterface* configuration_;
Then, in my Service.cpp:
Service::Service(Foundation::Framework* framework) :
framework_(framework)
{
configuration_ = new Configuration();
}
and later...
const Info GetInfo()
{
retur...
Hi,
I get an Error "HRESULT E_FAIL has been returned from a call to a COM component" when adding a .dll reference to a project in Visual Studio 2010.
The weird thing is, if I make a local copy of the .dll, and reference it locally it's fine. However, if I try and reference it from our shared resources server (\server\release\Common\Pa...
I'm following the Ruby on Rails tutorial at http://railstutorial.org/chapters/beginning#sec:1.4.1, and all is going well until I tried to get my app going on Heroku.
I installed heroku, that worked fine, but now when I run heroku keys:add or any other heroku command, I get the following error:
/home/sirswap/.rvm/gems/ruby-1.9.2-p0@rail...
I'm researching the Redirect on Post method and it seems that there are a few different opinions on how to approach the problem. I'll highlight what I've found and take your advice on what is truely the best practice:
Redirection: Should you use Javascript, or HTTP to redirect the page?
If you redirect using HTTP, what type of redire...
In my current error handling, I specify the Form, function and error message in a messagebox similar to the following.
try
{
//Some code here
}
catch(Exception ex)
{
MessageBox.Show("Form Title : " + this.Title + "\nFunction : CurrentFunction \nError : " + ex.Message);
return;
}
This works for me, but was curious if I can ...
I have a webpage that is giving me this error on a couple of pages
--------------------------------------------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers error '8007000e'
[Microsoft][ODBC Microsoft Access Driver] System resource exceeded.
-----------------------------------------------------------...
I have a Rails Model:
ruby-1.9.2-p0 > NavItem
=> NavItem(id: integer, item_identifier: string, description: string, description2: string, packing_unit: string, sales_unit_of_measure: string, ean_code: string, evp_price: string, item_category_code: string, class: string, product_group_code: string, maintenance_status: string)
If I wa...
validates_presence_of :match,
:message => "for your name and password could not be found. Did you #{link_to "forget your password", help_person_path}?"
That's what I want to do. I can interpolate variables that are set in the model, but using simple Rails code like "link_to" doesn't seem to work. Which is a bummer.
...
I want to make an application in php where users can run their php files. In that application I want to show more simple error messages to the user. Is there any procedure in php to edit default error messages?
...
My QA specialist is getting this following bug:
Opening & closing the Country dropdown along with other dropdowns: Toggle opening Country & Phone Type drops.
Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Is this an issue with the JavaScript. And if so I have ...
Hi,
I am new to ObC and have a problem that i just cant fix. There may be other issues as well but the main issue is this:
Starting the app
Press button = load new view
In the new viewDidLoad i call another object/function and send a NSMutableArray
Process data and send back a NSMutableArray
App crash, see comment where. Most often wh...
Hello, I am a newbie in Django. I am writing a sample application that has a form, submit that form then saving the data into the database. My form need to be validated before allowing to save data. So my question is how can I pass the error messages (that generated by validation) to the view? Any suggestion are welcome. Thanks!
...
I have a legacy Rails project (2.4) that used to work in Netbeans. But I just tried running it and got the message
"could not connect to the web server http://localhost:3000"
How do I get a more detailed explanation from Netbeans?
I don't see any other error information.
...
I'm learning C++. I regularly get errors that look like this
/usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/basic_string.h:1458: instantiated from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const Alloc&, std::_false_type) [with _InIterator = std::istream_iterator, std...