?
Solved

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

Posted on 2008-06-11
2
Medium Priority
?
260 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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

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…
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 video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 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