GEM window open problem

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
exxos
Hardware Guru
Hardware Guru
Posts: 4933
Joined: Fri Mar 28, 2003 8:36 pm
Location: England
Contact:

GEM window open problem

Postby exxos » Tue Dec 22, 2015 4:20 pm

Code: Select all

id=wind_create(&hfef,0,wind_y,639,wind_height)
junk=wind_open(id,0,wind_y,639,wind_height)
vr_recfl 0,wind_y,638,wind_y+wind_height-1
junk=wind_close(id)
junk=wind_delete(id)


I have the above code to open up a GEM window and then close it again (as part of a Gembench test routine) however I noticed on the Falcon the routine crashes always on 15 windows. But there is only ever 1 window open at a time as each time it opens, its closed again and deleted.

The problem does not show up on a STFM, it works on all 20 windows perfectly. In fact I've ran 200 window test on the STFM. So not sure why the Falcon does not like it ? AFAIK its the "wind_open" line where it locks up at. If I REM it out, the test runs all 20 loops. Though its not creating the window anyway.
4MB STFM 1.44 FD- VELOCE+ 020 STE - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - various clutter

http://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
http://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.
http://ataristeven.exxoshost.co.uk/Steem.htm Latest Steem Emulator

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: GEM window open problem

Postby Cyprian » Tue Dec 22, 2015 4:49 pm

I would suggest to check ID value returned by wind_create. Negative value means error.
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
exxos
Hardware Guru
Hardware Guru
Posts: 4933
Joined: Fri Mar 28, 2003 8:36 pm
Location: England
Contact:

Re: GEM window open problem

Postby exxos » Tue Dec 22, 2015 4:57 pm

Cyprian wrote:I would suggest to check ID value returned by wind_create. Negative value means error.


I've been trying, by dumping the values to a file, but I don't think it gets that far, it simple locks up on that line and never outputs anything to the file, possible it could crash before writing the ID value, but no way to tell.

If I run 10 loops and click on the that test over and over it works fine, but it doesn't work in a loop. So can only assume the window isn't actually deleted until the loop ends an then the memory is freed then.
4MB STFM 1.44 FD- VELOCE+ 020 STE - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - various clutter

http://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
http://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.
http://ataristeven.exxoshost.co.uk/Steem.htm Latest Steem Emulator

User avatar
exxos
Hardware Guru
Hardware Guru
Posts: 4933
Joined: Fri Mar 28, 2003 8:36 pm
Location: England
Contact:

Re: GEM window open problem

Postby exxos » Tue Dec 22, 2015 8:37 pm

I ran the loop on its own and it seems to work in Hatari now. So not sure whats going on in Gembench as the loop doesn't get past 15 there, and yet, the routine is exactly the same, just ran on its own. Its just another screwy issue in Gembench which makes no sense at all.

Hopefully after xmas I can re-start working on GB6..
4MB STFM 1.44 FD- VELOCE+ 020 STE - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - various clutter

http://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
http://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.
http://ataristeven.exxoshost.co.uk/Steem.htm Latest Steem Emulator

hawlk
Atarian
Atarian
Posts: 4
Joined: Fri Apr 18, 2014 6:15 pm

Re: GEM window open problem

Postby hawlk » Tue Dec 22, 2015 9:01 pm

exxos wrote:

Code: Select all

id=wind_create(&hfef,0,wind_y,639,wind_height)
               ^^^^^



&hfef bad parameter maybe.

int16_t wind_create ( int16_t wi_crkind, int16_t wi_crwx, int16_t wi_crwy, int16_t wi_crww, int16_t wi_crwh );

test with

Code: Select all

id=wind_create( 1, 0, wind_y, 639, wind_height)

User avatar
exxos
Hardware Guru
Hardware Guru
Posts: 4933
Joined: Fri Mar 28, 2003 8:36 pm
Location: England
Contact:

Re: GEM window open problem

Postby exxos » Tue Dec 22, 2015 9:28 pm

hawlk wrote:
exxos wrote:

Code: Select all

id=wind_create(&hfef,0,wind_y,639,wind_height)
               ^^^^^



&hfef bad parameter maybe.

int16_t wind_create ( int16_t wi_crkind, int16_t wi_crwx, int16_t wi_crwy, int16_t wi_crww, int16_t wi_crwh );

test with

Code: Select all

id=wind_create( 1, 0, wind_y, 639, wind_height)


Still does the same. Though the routine itself works on its own. so something is causing it to crash outside of the loop which I don't really see how that is possible :shrug:
4MB STFM 1.44 FD- VELOCE+ 020 STE - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - various clutter

http://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
http://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.
http://ataristeven.exxoshost.co.uk/Steem.htm Latest Steem Emulator


Social Media

     

Return to “Other BASIC”

Who is online

Users browsing this forum: No registered users and 2 guests