forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

vlfGuiCancelBottomDialog crash

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
ab5000



Joined: 06 May 2008
Posts: 74

PostPosted: Sun Jun 14, 2009 5:50 pm    Post subject: vlfGuiCancelBottomDialog crash Reply with quote

Hi.
I'm working on a project that uses VLF. All is fine, but when i try to cancel a bottomdialog it crashes. This only happens when only X button is displayed, like this:

Code:
vlfGuiBottomDialog(-1, VLF_DI_ENTER, 1, 0, VLF_DEFAULT, NULL);


If X and O are both displayed, all works fine.
With the previous beta versione all worked fine.

Can someone help me?

Thanks.
ab5000

EDIT: I've done some other testing. When the bottomdialog only displays O:

Code:
vlfGuiBottomDialog(VLF_DI_BACK, -1, 1, 0, VLF_DEFAULT, OnBackFromHwInfo);


it doesn't crash. So:

- BottomDialog with X + O = No Crash
- BottomDialog with O = No Crash
- BottomDialog with X = Crash!!!

Then i've swapped X and O (O=Enter, X=Back), but X always crashes. So key layout (EUR/JAP) doesn't matter.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Mon Jun 15, 2009 4:40 pm    Post subject: Reply with quote

Yes, cancelling the bottom dialog crashes if you only have X. It didn't happen in the versions before 1.0.
Back to top
View user's profile Send private message
ab5000



Joined: 06 May 2008
Posts: 74

PostPosted: Mon Jun 15, 2009 5:34 pm    Post subject: Reply with quote

Noone knows how to fix this?

Thanks.
_________________
Code:
%:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%>
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Jun 15, 2009 5:37 pm    Post subject: Reply with quote

Don't use only X. :D
Back to top
View user's profile Send private message AIM Address
ab5000



Joined: 06 May 2008
Posts: 74

PostPosted: Mon Jun 15, 2009 6:01 pm    Post subject: Reply with quote

J.F. wrote:
Don't use only X. :D


Well, maybe... If i recall correctly, there's a function to hide all objects in a certain region of the screen. Maybe i can hide the O key (i nedd it only for a menu) and ingnore it in the code.

EDIT: Yes, i recalled correctly.

Code:
/**
 * Sets the visibility of the items in a rectangle
 *
 * @param x - x position of rectangle
 * @param y - y position of rectangle
 * @param w - width of rectangle
 * @param h - height of rectangle
 * @param visible . boolean indicating visibility
 *
 * @returns - < 0 on error
*/
int vlfGuiSetRectangleVisibility(int x, int y, int w, int h, int visible);


I will try ASAP.

EDIT2: in the dc6 graphics thread moonlight says this functions isn't 100% working. some objects aren't hidden. i'll try, i hope it will work.
_________________
Code:
%:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%>
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Mon Jun 15, 2009 10:17 pm    Post subject: Reply with quote

It will hide the entire bottom dialog, not only O button.
Back to top
View user's profile Send private message
ab5000



Joined: 06 May 2008
Posts: 74

PostPosted: Mon Jun 15, 2009 10:37 pm    Post subject: Reply with quote

Torch wrote:
It will hide the entire bottom dialog, not only O button.


Well, maybe I can make O = Exit...
_________________
Code:
%:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group