runtime-error

Works for Short Input, Fails for Long Input. How to Solve?

I've this program which finds substring in a string. It works for small inputs. But fails for long inputs. Here's the program: //Find Substring in given String #include <stdio.h> #include <string.h> main() { //Variable Initialization int i=0,j=0,k=0; char sentence[50],temp[50],search[50]; //Gets Strings printf("Enter Sentence...

cannot open shared library during execution

I compiled my program as follows. mpicc b_eff_io.c -o b_eff_io2 -I/scratch/irodero/papi/include -L/scratch/irodero/papi/src -lpapi -lm 41125309 4 drwxr-xr-x 3 irodero users 4096 May 3 23:14 . 39649287 4 drwxr-xr-x 12 irodero users 4096 May 3 00:27 .. 41126356 4 drwxr-xr-x 2 irodero users 4096 May 3 23:...

Android - What is mediarecorder's maximum maxfilesize?

Android - What is the maximum file size that setMaxFileSize can be set to in respect to Androids mediarecorder? I know it's somewhere between 4147483650 and 5147483650. Why is there a limit in the first place? I'm recording on to a SDCARD, detecting the size of the cards space before we run. "ERROR/AuthorDriver(31): setParameter(max-fi...

If a run-time error occus in a VB6 app, does this mean Error handling has been turned off?

If a run-time error occur in a VB6 app, does this mean Error handling has been turned off by use of the On Error Goto 0 statement? Can this assumption be made? Or are there other circumstances in which a run-time error could occur? If an error has been handled by either a Resume Next or a Goto then surely a run-time error would not oc...

"run-time error '453' can't find dll entry point" from vb.net compiled dll referenced by vba

I am coding in vb.net through visual studio 2008. I have successfully compiled a dll file from my code but I continue to get "Run-time error '453'" when I try to reference the dll in vba. I understand there is some sort of compiling error that occurs when using vb.net. Does anyone have any suggestions to fix/overcome this issue? I would ...

Python Terminated Thread Cannot Restart

Hello, I have a thread that gets executed when some action occurs. Given the logic of the program, the thread cannot possibly be started while another instance of it is still running. Yet when I call it a second time, I get a "RuntimeError: thread already started" error. I added a check to see if it is actually alive using the Thread.is...

Runtime HttpException affecting only one page/usercontrol

We're having an issue with a .NET 3.5 WebForms site where occasionally our error logs start filling up with the following error message: "Multiple controls with the same ID 'ctl09' were found. FindControl requires that controls have unique IDs." I know very little about the exception as I have never seen it while debugging locally and ...

Runtime Error 424 Object Required

Hey so I get this error in this code: Private Sub Request_Stuff_button_Click() Call Main.createObjects Call My_Control.requestStuff End Sub at the 'Call My_Control.requestStuff' line. The 'Main' module looks like this: Public My_Control As ControlObject Public Sub createObjects() If My_Control Is Nothing Then S...

exception in thread "main" java.lang.NoclassDefFoundError: cal/class

enter import java.io.*; class eval { double add(double a,double b) { return (a+b); } double sub(double a,double b) { return (a-b); } double mul(double a,double b) { return (a*b); } double div(double a,double b) { return (a/b); } } class cal extends eval { public static void main(String args[])throws IOException { eval a...

What's wrong with my code? (pdcurses/getmaxyx)

It gives me an access violation on the getmaxyx line (second line in the main function) and also gives me these two warnings: LINK : warning LNK4049: locally defined symbol "_stdscr" imported LINK : warning LNK4049: locally defined symbol "_SP" imported Yes, it's the same code as in another question I asked, it's just that I'm making ...

Stream extraction within if/else

Assuming the stream extraction won't fail, will this if( !(stream >> token) ) throw runtime_error( "Unexpected end of recipe." ); else if( token == "something" ) // do something else throw runtime_error( "Unknown token" ); Work like this if( !(stream >> token) ) throw std::runtime_error( "Unexpected end of recipe." );...

How to debug C++ Runtime Error caused by my DLL?

I'm writing an addin DLL in C# for a host application written in C++ (I do not have source for the host app). When I run the host application, it loads my DLL for use during that session. Recently, I've been seeing the following error upon exit of the host application: Microsoft Visual C++ Runtime Library Runtime Error! Program: MyHos...

NullPointerException when running multiple Action events

Purpose of the code : Create two Buttons(button1 and button2). When User clicks button1, change the text of button2. When User clicks button2, change the text of button1. Here's the code I'm using : import javax.swing.*; import java.awt.*; import java.awt.event.*; public class multiAL { JButton button1; JButton button2; JFrame frame; ...

Why is the app lagging when i "scroll"?

I am developing a "doodle jump" like game and i have 5 platforms on the screen on at a time. there are two background UIImageViews. I have the "scrollUp" function called whenever the player is in the top 3/4's of the screen. when the backgrounds are in view, the game slows down and lags, when the backgrounds are out of view (have scolle...

Problem building a Java Rules app in Eclipse

I'm trying to build a simple Drools project in Eclipse, but when I try to test it, a runtime exception is thrown with the message, "The Eclipse JDT Core jar is not in the classpath." Any ideas where I might find this jar? Thanks! ...

Unable to run "Hello World" Drools example in Eclipse

I just installed the Drools plug-in in Eclipse (version 3.5.2), and I am trying to run the "Hello World" example that comes with the plug-in. When I run the code, I generate a runtime error with the following stack trace: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfigu...

Virtual List Control Problem

Hi, I'm using a virtual lit control and I get the data from a map. My problem is when I run the code, it displays the list ok, but when the mouse cursor moves on to the list control or when I try to scroll down, it gives a Debug Assertion failure saying map/set iterator is not dereferencable. My GetDispInfo() method is as follows: voi...

ASP.NET : getting 'currentStyle' is null or not an object when adding webpanel dynamicly

Hi, I added dynamicly infragistics webpanel in my codebehind using : placeHolder.Controls.Add(ctlWebpanel); but i got this javascript error in my ASP.net page in runtime : 'currentStyle' is null or not an object How to set the style to remove that error ? ...

"The application failed to initialize properly (0xc000007b)."

I get this error when i try to start a program that I've made in C++. It works fine on my other computer (XP SP3 32bit) but not on my windows 7 64 bit version. When I run Dependency Walker on the program, it tells me that IESHIMS.dll is missing, however it's there in the Internet Explorer folder of both 32 and 64 bit version.. Can anyon...

Sitemap randomly breaks over time

I've been having some production runtime errors that I don't fully understand. This has happened to us on a couple different ASP.NET 4.0 Web Sites (shudders - yes, I know - we're porting it to MVC but that's taking some time). First of all, we have never been able to reproduce this issue in development/QA environments. Secondly, upon de...