Hi,
I am trying to integrate a GLBasic iPhone App with a XCode UI App.
The objective is to 'launch' an iPhone GLBasic App from an UI XCode Project.
What I have done:
- I create a simple GLBasic Application and compile for iPhone (simple helloworld text on screen).
- I tested (standalone) on iPhone and works.
- I create a simple ui application (a button with text 'launch glbasic app').
- I copy all libraries from GLBasic project to UI project.
- I add other linker flags, etc to get 2 projects exactly the same.
- I add the following code to UI project when press button. (I have defined the two methods and tested that nil arguments works).
-(IBAction) launchGLBasic:(id) sender {
isIphone();
GLB_iPhone_call_main(nil, nil);
}
- Applications UI runs pretty well, but when i press the button, application hang up for a second and then crash.
Any clue, I have missed something?
Any help will be appreciated!
Thanks in advance.
King regards, fjsantos.