vlfGuiCancelBottomDialog crash

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
ab5000
Posts: 74
Joined: Tue May 06, 2008 2:37 am

vlfGuiCancelBottomDialog crash

Post by ab5000 »

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: Select all

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: Select all

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.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Yes, cancelling the bottom dialog crashes if you only have X. It didn't happen in the versions before 1.0.
ab5000
Posts: 74
Joined: Tue May 06, 2008 2:37 am

Post by ab5000 »

Noone knows how to fix this?

Thanks.

Code: Select all

%&#58;include<stdio.h>
int _&#40;int __,int ___,int ____,int _____&#41;
<%for&#40;;____<___;_____=_____*__,____++&#41;;
return _____;%>main&#40;&#41;<%printf
&#40;"%d\n",_&#40;2,5,0,1&#41;&#41;;%>
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Don't use only X. :D
ab5000
Posts: 74
Joined: Tue May 06, 2008 2:37 am

Post by ab5000 »

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: Select all

/**
 * 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&#40;int x, int y, int w, int h, int visible&#41;;
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: Select all

%&#58;include<stdio.h>
int _&#40;int __,int ___,int ____,int _____&#41;
<%for&#40;;____<___;_____=_____*__,____++&#41;;
return _____;%>main&#40;&#41;<%printf
&#40;"%d\n",_&#40;2,5,0,1&#41;&#41;;%>
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

It will hide the entire bottom dialog, not only O button.
ab5000
Posts: 74
Joined: Tue May 06, 2008 2:37 am

Post by ab5000 »

Torch wrote:It will hide the entire bottom dialog, not only O button.
Well, maybe I can make O = Exit...

Code: Select all

%&#58;include<stdio.h>
int _&#40;int __,int ___,int ____,int _____&#41;
<%for&#40;;____<___;_____=_____*__,____++&#41;;
return _____;%>main&#40;&#41;<%printf
&#40;"%d\n",_&#40;2,5,0,1&#41;&#41;;%>
Post Reply