Solved

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

Posted on 2008-06-11
2
250 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 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