SDK 53.24 ... and followups

Have a question about our Software Developer Kit? Ask them here.

Re: SDK 53.24 ... and followups

Postby Raziel » Sun Oct 13, 2013 7:45 am

Belxjander wrote:Well I ran into a weird problem...

The SDK Installer decided to cut off everything past the entry for the SDK in my User-Startup sequence

and as that entry was near the beginning... obliterated ALL of the file following...so I lost the MUI and Application assigns for everything else installed.

Neat fun... not... is the Installer suppossed to have exclusive control or have any trigger for "cutting short" files like that ?

Second Item... is "IExec->CreateMsgPort();" deprecated or not?

It happened to me too (i also already had the lines in from an earlier SDK), but it only "erased" the very last entry of user-startup.

I was able to recover it through the .recycled dir, though...and i remember this "last line erase" from earlier installations (going back to OS4.0, seems to be a long standing installer problem, IF it is a problem).

Never had such a big chunk cut off
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. John Zoidberg
User avatar
Raziel
 
Posts: 753
Joined: Sat Jun 18, 2011 5:00 pm
Location: A haunted Castle somewhere in the Bavarian Mountains

Re: SDK 53.24 ... and followups

Postby Belxjander » Sun Oct 13, 2013 10:41 am

Raziel wrote:
Belxjander wrote:Well I ran into a weird problem...

The SDK Installer decided to cut off everything past the entry for the SDK in my User-Startup sequence

and as that entry was near the beginning... obliterated ALL of the file following...so I lost the MUI and Application assigns for everything else installed.

Neat fun... not... is the Installer suppossed to have exclusive control or have any trigger for "cutting short" files like that ?

Second Item... is "IExec->CreateMsgPort();" deprecated or not?

It happened to me too (i also already had the lines in from an earlier SDK), but it only "erased" the very last entry of user-startup.

I was able to recover it through the .recycled dir, though...and i remember this "last line erase" from earlier installations (going back to OS4.0, seems to be a long standing installer problem, IF it is a problem).

Never had such a big chunk cut off


I had a long User-Startup I had written out... and the SDK entry was near the beginning... basically it almost wiped it back to only its own entry
and I didn't have any .recycled backup versions to "recover" from at all... so I am just re-writing extras into it as I come across the need
Belxjander
 
Posts: 260
Joined: Mon May 14, 2012 11:26 pm
Location: 日本千葉県松戸市 / Matsudo City, Chiba, Japan

Re: SDK 53.24 ... and followups

Postby salass00 » Sun Oct 13, 2013 10:58 am

Belxjander wrote:I had a long User-Startup I had written out... and the SDK entry was near the beginning... basically it almost wiped it back to only its own entry


Did you delete or in some way modify the line with ";END AmigaOS 4.1 SDK" in your User-Startup? If you did it could explain what happened since everything between ";START AmigaOS 4.1 SDK" and ";END AmigaOS 4.1 SDK" is to be replaced by the installer and if it can't find the end marker because it was deleted or somehow made unrecognisable it would probably replace the entire rest of the file.

FWIW I had my SDK entry pretty much at the beginning of my User-Startup too and it didn't cause me any problems.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 477
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland

Re: SDK 53.24 ... and followups

Postby Belxjander » Sun Oct 13, 2013 11:07 am

salass00 wrote:
Belxjander wrote:I had a long User-Startup I had written out... and the SDK entry was near the beginning... basically it almost wiped it back to only its own entry


Did you delete or in some way modify the line with ";END AmigaOS 4.1 SDK" in your User-Startup? If you did it could explain what happened since everything between ";START AmigaOS 4.1 SDK" and ";END AmigaOS 4.1 SDK" is to be replaced by the installer and if it can't find the end marker because it was deleted or somehow made unrecognisable it would probably replace the entire rest of the file.

FWIW I had my SDK entry pretty much at the beginning of my User-Startup too and it didn't cause me any problems.


nope...those two lines were unchanged
Belxjander
 
Posts: 260
Joined: Mon May 14, 2012 11:26 pm
Location: 日本千葉県松戸市 / Matsudo City, Chiba, Japan

Re: SDK 53.24 ... and followups

Postby ZeroG » Sun Oct 13, 2013 11:12 am

@ssolie
The autodoc for layout.gadget is merged with the page.gadget autodoc.

The FSVPTool and FSTest tools are not found in the SDK. Why?
User avatar
ZeroG
 
Posts: 114
Joined: Sat Jun 18, 2011 12:31 pm
Location: Germany

Re: SDK 53.24 ... and followups

Postby blmara » Sun Oct 13, 2013 3:13 pm

Another change introduced: at include_h/graphics/text.h the definition of struct TextAttr and TTextattr there is a CONST_STRPTR as the type of name of the font. My program has several cases that the structure is used to open a selectable font, and using ta->ta_Name causes a 'const' warning now. Can be ignored, but why the change?

Marko
blmara
 
Posts: 60
Joined: Thu Jun 23, 2011 10:03 am

Re: SDK 53.24 ... and followups

Postby salass00 » Sun Oct 13, 2013 10:21 pm

Another change introduced: at include_h/graphics/text.h the definition of struct TextAttr and TTextattr there is a CONST_STRPTR as the type of name of the font. My program has several cases that the structure is used to open a selectable font, and using ta->ta_Name causes a 'const' warning now. Can be ignored, but why the change?


Because it is the correct type to use there.

Instead of just ignoring those compiler warnings you should always try to understand them and fix them. Compiler warnings are your friends and can help you to find bugs in your programs if you just let them.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 477
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland

Re: SDK 53.24 ... and followups

Postby ssolie » Sun Oct 13, 2013 10:47 pm

ZeroG wrote:The FSVPTool and FSTest tools are not found in the SDK. Why?

Because I forgot to include them. I'll get them next time.
AmigaOS Development Team Lead
Be authentic. Get AmigaOS.
User avatar
ssolie
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1000
Joined: Mon Dec 20, 2010 9:51 pm
Location: Canada

Re: SDK 53.24 ... and followups

Postby ssolie » Sun Oct 13, 2013 10:50 pm

blmara wrote:Can be ignored, but why the change?

The types have been corrected. There are many more corrections and more will be corrected over time. You should adapt your code to use the corrected types.
AmigaOS Development Team Lead
Be authentic. Get AmigaOS.
User avatar
ssolie
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1000
Joined: Mon Dec 20, 2010 9:51 pm
Location: Canada

Re: SDK 53.24 ... and followups

Postby blmara » Sun Oct 13, 2013 11:13 pm

salass00 wrote:
Another change introduced: at include_h/graphics/text.h the definition of struct TextAttr and TTextattr there is a CONST_STRPTR as the type of name of the font...


Because it is the correct type to use there.

Instead of just ignoring those compiler warnings you should always try to understand them and fix them. Compiler warnings are your friends and can help you to find bugs in your programs if you just let them.


Yes, I appreciate the warnings, they tell usually very much of my flawed code ;) But here I don't understand the CONST_ part, as I understand the const to define something that is constant for the time program runs. But these structs are used for example to open an user selectable font. Could you explain a bit more?

Marko
blmara
 
Posts: 60
Joined: Thu Jun 23, 2011 10:03 am

PreviousNext

Return to SDK Support

Who is online

Users browsing this forum: No registered users and 2 guests