Dos notifications - Anyway to get more event information

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

Re: Dos notifications - Anyway to get more event information

Postby ssolie » Wed Jul 10, 2013 4:39 pm

theamigaone wrote:Right, did'nt quite realize that the Filesystem will actually call the hook, true the printfs could go awol. The serial debug is something which sounds very useful.

For more information about serial debugging see Advanced Serial Debugging Guide.
ExecSG Team Lead
User avatar
ssolie
Beta Tester
Beta Tester
 
Posts: 1010
Joined: Mon Dec 20, 2010 9:51 pm
Location: Canada

Re: Dos notifications - Anyway to get more event information

Postby theamigaone » Wed Jul 10, 2013 4:54 pm

Hey, thanks, yep got the Serial Sashimi working and indeed my was being called with just the Printf going awol. I'm now just working on the putmsg back to my notifymessage port.

Sure id gladly amend the wiki, thou didn't see a 'register' link, i take it it's hidden :)
Nephele Cloud App OS4 Developer - AmigaOneXE OS4.1.6
http://www.youtube.com/theamigaone
http://taosoftware.blogspot.com
User avatar
theamigaone
 
Posts: 24
Joined: Sun Jun 30, 2013 2:48 pm
Location: United Kingdom

Re: Dos notifications - Anyway to get more event information

Postby theamigaone » Wed Jul 10, 2013 8:46 pm

Thanks All - Topic solved.

Managed to get the hook to send a message with the filename and Code of the file changed to my app.
Nephele Cloud App OS4 Developer - AmigaOneXE OS4.1.6
http://www.youtube.com/theamigaone
http://taosoftware.blogspot.com
User avatar
theamigaone
 
Posts: 24
Joined: Sun Jun 30, 2013 2:48 pm
Location: United Kingdom

Re: Dos notifications - Anyway to get more event information

Postby colinw » Thu Jul 11, 2013 2:01 am

While the wiki is currently being updated and contains mostly older documentation and methods.
ALWAYS refer to the latest dos.doc autodocs for the latest release info, it will be merged into the wiki as time permits.

For example;
Please revisit the dos autodocs and DO note that notifications should always be allocated with AllocDosObject() now
rather than the OS3 method of manually allocating memory and initialising the structure.

Also, be aware that you now have the ADO_DOSMethodOnly tag, (to set; nr_Flags |= NRF_DOS_NOTIFY_ONLY)
which will provide a consistent and low overhead notification, regardless of the filesystem support status.
User avatar
colinw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 178
Joined: Mon Aug 15, 2011 10:20 am
Location: Brisbane, QLD. Australia.

Re: Dos notifications - Anyway to get more event information

Postby theamigaone » Thu Jul 11, 2013 3:55 pm

Don't worry I always do, the SDK browser is always my first point of call, then websites. But yes it is easy to get 'best practice' versions combined, I had this when handling multiple windows, wondering why I keep getting crashes, turned out I was using IDoMethod for opening windows and IIntuition->CloseWindow to close, of course unaware of the other bits Class methods do.
Nephele Cloud App OS4 Developer - AmigaOneXE OS4.1.6
http://www.youtube.com/theamigaone
http://taosoftware.blogspot.com
User avatar
theamigaone
 
Posts: 24
Joined: Sun Jun 30, 2013 2:48 pm
Location: United Kingdom

Re: Dos notifications - Anyway to get more event information

Postby ssolie » Thu Jul 11, 2013 6:32 pm

colinw wrote:While the wiki is currently being updated and contains mostly older documentation and methods.
ALWAYS refer to the latest dos.doc autodocs for the latest release info, it will be merged into the wiki as time permits.

Note I'm also working on getting our autodocs online as well but that project is a bit more involved...
ExecSG Team Lead
User avatar
ssolie
Beta Tester
Beta Tester
 
Posts: 1010
Joined: Mon Dec 20, 2010 9:51 pm
Location: Canada

Previous

Return to SDK Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron