Dos notifications - Anyway to get more event information

Have a question about our Software Developer Kit? Ask them here.
User avatar
ssolie
Beta Tester
Beta Tester
Posts: 1010
Joined: Mon Dec 20, 2010 8:51 pm
Location: Canada
Contact:

Re: Dos notifications - Anyway to get more event information

Post by ssolie »

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
theamigaone
Posts: 24
Joined: Sun Jun 30, 2013 1:48 pm
Location: United Kingdom
Contact:

Re: Dos notifications - Anyway to get more event information

Post by theamigaone »

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 1:48 pm
Location: United Kingdom
Contact:

Re: Dos notifications - Anyway to get more event information

Post by theamigaone »

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
colinw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 207
Joined: Mon Aug 15, 2011 9:20 am
Location: Brisbane, QLD. Australia.

Re: Dos notifications - Anyway to get more event information

Post by colinw »

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
theamigaone
Posts: 24
Joined: Sun Jun 30, 2013 1:48 pm
Location: United Kingdom
Contact:

Re: Dos notifications - Anyway to get more event information

Post by theamigaone »

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
ssolie
Beta Tester
Beta Tester
Posts: 1010
Joined: Mon Dec 20, 2010 8:51 pm
Location: Canada
Contact:

Re: Dos notifications - Anyway to get more event information

Post by ssolie »

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
Post Reply