There is a detailed explanation of this halfway down in the include file; exec/types.hblmara wrote: ...
But here I don't understand the CONST_ part,
Search found 189 matches
- Mon Oct 14, 2013 12:08 am
- Forum: SDK Support
- Topic: SDK 53.24 ... and followups
- Replies: 43
- Views: 48343
Re: SDK 53.24 ... and followups
- Thu Sep 19, 2013 10:44 pm
- Forum: General AmigaOS
- Topic: GetFileSize() function issue in OS4 [Solved]
- Replies: 4
- Views: 1724
Re: GetFileSize() function issue in OS4
Yes, you must pass only an open filehandle to GetFileSize(). The IoErr() code [ERROR_OBJECT_WRONG_TYPE] should have indicated this. What you need in your situation is something like the following pseudocode; ==================================================== BPTR BHandle = IDOS->Lock(passedfilenam...
- Sat Aug 17, 2013 10:06 pm
- Forum: General Developer Support
- Topic: [avoided] Using IExec->AllocSysObjectTags() in library?
- Replies: 8
- Views: 5423
Re: Using IExec->AllocSysObjectTags() in library?
@colinw Ok. I allready use the SafeSignal() to send the ctrl-c to my process. I get the PID from IDOS->IoErr() as documented in the CreateNewProcTags() description. There is no IDOS->GetPID in the current SDK, [...] I will just do as colinw suggested. do { done = safeSignalNotifyProcess(libBase); I...
- Sat Aug 17, 2013 8:00 am
- Forum: General Developer Support
- Topic: [avoided] Using IExec->AllocSysObjectTags() in library?
- Replies: 8
- Views: 5423
Re: Using IExec->AllocSysObjectTags() in library?
Ok, that's not good, i'll try and remedy that with management ASAP.gazelle wrote: (...)
There is no IDOS->GetPID in the current SDK,
- Sat Aug 17, 2013 3:12 am
- Forum: General Developer Support
- Topic: [avoided] Using IExec->AllocSysObjectTags() in library?
- Replies: 8
- Views: 5423
Re: Using IExec->AllocSysObjectTags() in library?
These features basically require that you know what task is going to persist to receive the deathmessage or deathsignal. Unfortunately, from a library context, that's the one thing you can't know in advance. So these are not going to help you a lot here, sorry. So, may I suggest that you just put th...
- Sat Aug 10, 2013 11:23 pm
- Forum: General Developer Support
- Topic: [solved] Using IDOS->NotifyVar() in library?
- Replies: 10
- Views: 6850
Re: Using IDOS->NotifyVar() in library?
I have no control over the calling process. I'll try another approach. Solution: I'm now creating my own "notify process" which installes the hook and stays alive as long as the library is not expunged. Simpler solution: Do it in libInit(). Then the calling process is "ramlib" a...
- Sat Aug 10, 2013 12:16 pm
- Forum: General Developer Support
- Topic: [solved] Using IDOS->NotifyVar() in library?
- Replies: 10
- Views: 6850
Re: Using IDOS->NotifyVar() in library?
For this function, the hook is always called from a different context. If the notification is added to the internal list, and the name matches, the hook will be called from the process that is modifying the variable. Be aware that if the process that initiated the notification ends, and it still has...
- Sat Aug 10, 2013 1:07 am
- Forum: General Developer Support
- Topic: [solved] Using IDOS->NotifyVar() in library?
- Replies: 10
- Views: 6850
Re: Using IDOS->NotifyVar() in library?
I have just tested the variable notification function and it is working correctly.
Please test it by typing the following in a shell; setenv testvar xxx
Also, please tell me what dos library version you are using.
Please test it by typing the following in a shell; setenv testvar xxx
Also, please tell me what dos library version you are using.
- Sun Jul 21, 2013 11:17 pm
- Forum: General Developer Support
- Topic: how to SYNC to inhibit all partitions
- Replies: 9
- Views: 8736
Re: how to SYNC to inhibit all partitions
By the way, I only just noticed... FreeDeviceproc() must be called for each GetDeviceProc(), INSIDE the volume list loop. As it is shown above, it's returning the deviceproc for each volume and just orphaning the devproc memory, except for the last one when it falls out of the loop and calls FreeDev...
- Thu Jul 11, 2013 1:01 am
- Forum: SDK Support
- Topic: Dos notifications - Anyway to get more event information
- Replies: 15
- Views: 16565
Re: Dos notifications - Anyway to get more event information
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 ...