Build Your Own Arcade Controls Forum

Software Support => SK Jukebox => Topic started by: Beowolf on March 08, 2006, 09:58:18 am

Title: runtime error 384
Post by: Beowolf on March 08, 2006, 09:58:18 am
Version 2.8.1

Occasionally, and so far unreproducibly,  I get runtime error 384 when starting the jukebox.  On clicking 'ok' on the error, the jukebox closes.

I reapplied the 2.8.1 update and the program works again.

The error message is: "A form cannot be moved or sized while minimized or maximized"

From limited googling, it seems it means exactly what it says.
Title: Re: runtime error 384
Post by: SalmonKing on March 09, 2006, 03:00:20 pm
That must be a result of me adding the functionality where SKJB remembers where it was on the screen.  I'll see if there's anything I can do there (i.e. just put in some code where it's putting the main screen back to where it was to skip that error, if it comes up).
Title: Re: runtime error 384
Post by: Beowolf on March 10, 2006, 12:15:14 pm
I think if you just check that the program isn't minimised or maximised before you resize or move it you should avoid the error.

That was a horrible sentence.
Title: Re: runtime error 384
Post by: SalmonKing on March 10, 2006, 12:26:51 pm
I think if you just check that the program isn't minimised or maximised before you resize or move it you should avoid the error.

That was a horrible sentence.

Considering the problem is intermittant for you and I've never seen it before and the fact that I'm sizing/moving the window BEFORE restoring the window state already.... it's one of those inexplicable problems I just have to patch up (i.e. by ignoring the error when restoring the position).
Title: Re: runtime error 384
Post by: Beowolf on March 11, 2006, 10:06:23 am
Would forcing the window state to normal before resizing work?

Force it to normal
Resize/move it
Restore the previous state
Title: Re: runtime error 384
Post by: SalmonKing on March 11, 2006, 04:43:17 pm
Would forcing the window state to normal before resizing work?

Force it to normal
Resize/move it
Restore the previous state

Relax, it's already taken care of   ;)