Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 think the most popular question in our Windows Mobile Programming zone is about the backlight - we all want to keep it on when our application is running. Few years ago the function SystemIdleTimerReset() did this job. On our side we had to detec…
Progress means simplifying, not complicating. Bruno Munari Preface How to detect the name of the internal storage or an SD-card on Windows Mobile device from the desktop application? I got this question, when I was working on a PC applicati…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

636 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