Solved

emul68kcommon.c, Line:1642, Index out of range

Posted on 2008-06-11
2
252 Views
Last Modified: 2013-12-27
Hi,

I'm getting the subject error when I have the lines uncommented:

FieldType *objectPtr;
objectPtr=FrmGetObjectPtr(activeForm, FormMainFieldTEST);

Help would be appreciated,
Thanks,
Uni.
/***********************************************************************
Handles all event associated for the main form.
***********************************************************************/
Boolean mainFormEventHandler(EventType* aEvent){
	
	//Check if we need to initialise the form.
	if(aEvent->eType==frmOpenEvent){
		FrmDrawForm(FrmGetActiveForm());
		initialiseMainForm();
		return true;
	}
 
	//Check if the event was a menu event.
	if(aEvent->eType==menuEvent)
		return mainFormMenuEventHandler(aEvent->data.menu.itemID);
		
	return false;
}
/**********************************************************************/
 
 
/***********************************************************************
Initialises anything on the main form.
***********************************************************************/
Boolean initialiseMainForm(){
 
	FormType *activeForm;
	//FieldType *objectPtr;
	
	activeForm=FrmGetActiveForm();
	//objectPtr=FrmGetObjectPtr(activeForm, FormMainFieldTEST);
		
	return true;
}
/**********************************************************************/

Open in new window

0
Comment
Question by:Unimatrix_001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
ID: 21758944
well, FrmGetObjectPtr() takes object index, not ID, so you should call it like that:

objectPtr=FrmGetObjectPtr(activeForm, FrmGEtObjectIndex(activeForm,FormMainFieldTEST));
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 21758962
:) Thank you...
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question