Search found 293 matches
- Sun Mar 03, 2013 10:21 pm
- Forum: General Developer Support
- Topic: Last Dos library make FastLHA crashed during GetMsg [SOLVED]
- Replies: 13
- Views: 10830
Re: Last Dos library make FastLHA crashed during GetMsg
struct DTSoundMessage *DTSoundmsg ; if (STOP) DTSoundmsg->soundMessage = 999; You never allocate memory for your message. You just use an uninitialized pointer and poke into the memory the pointer points to. Actually this should already crash. It's just a wonder that on the first attempt you hit va...
- Sun Mar 03, 2013 6:19 pm
- Forum: General Developer Support
- Topic: Last Dos library make FastLHA crashed during GetMsg [SOLVED]
- Replies: 13
- Views: 10830
Re: Last Dos library make FastLHA crashed during GetMsg
Who allocates the message? Who frees the message an when?
- Sun Mar 03, 2013 12:59 pm
- Forum: General Developer Support
- Topic: Last Dos library make FastLHA crashed during GetMsg [SOLVED]
- Replies: 13
- Views: 10830
Re: Last Dos library make FastLHA crashed during GetMsg
Use %lx instead of %d.
Print the address before you PutMsg() it, too.
Who allocates the message and how? When is it freed?
Print the address before you PutMsg() it, too.
How do you fill this pointer with a value? Do you ever CreateMsgPort() or AllocSysObject(ASOT_PORT)?struct MsgPort *DTMsgPort;
Who allocates the message and how? When is it freed?
- Sun Mar 03, 2013 8:36 am
- Forum: General Developer Support
- Topic: Last Dos library make FastLHA crashed during GetMsg [SOLVED]
- Replies: 13
- Views: 10830
Re: Last Dos library make FastLHA crashed during GetMsg
GetMsg may return NULL. You don't check this. If it is NULL you crash.zzd10h wrote:DTSoundmsg = (struct DTSoundMessage *)GetMsg(DTMsgPort) ;
message_recu = DTSoundmsg->soundMessage; <= addr2line spots this line.
- Sun Feb 17, 2013 9:52 am
- Forum: Platform: AmigaOne 500 and Sam series
- Topic: ppc programs problem with powerpc.library
- Replies: 4
- Views: 6889
Re: ppc programs problem with powerpc.library
Why does WarpOS emulation need hardware dependency? Isn't it possible to make a generic library which just wraps WarpOS functions to OS4 functions?
- Thu Feb 07, 2013 12:59 pm
- Forum: Platform: AmigaOne 500 and Sam series
- Topic: SSD with AOS4.1
- Replies: 2
- Views: 5190
Re: SSD with AOS4.1
AFAIK there is no special support for SSD in AmigaOS, so you have to take care about everything yourself. Partitions should be aligned to 512kb, file system block size should be 4kb. Furthermore there is no way to TRIM. So if your SSD slows down for write accesses, you have to create a backup, erase...
- Wed Jan 16, 2013 2:07 pm
- Forum: General Developer Support
- Topic: Loading 32-bit PNG with datatypes
- Replies: 22
- Views: 14353
Re: Loading 32-bit PNG with datatypes
Hi ThomasRapp, In fact I inspired from an AmigaOS3 sample that showed how to use Datatypes and, as it actually work perfectly this way, I didn't remove these :p But, as I know they're useless, I will remove them and test if nothing changed :) Thank you for your information. Regards, AmiDARK On OS3 ...
- Sat Jan 12, 2013 6:16 pm
- Forum: General Developer Support
- Topic: Loading 32-bit PNG with datatypes
- Replies: 22
- Views: 14353
Re: Loading 32-bit PNG with datatypes
Setting PDTA_Remap to TRUE without setting PDTA_Screen also is nonsense. Same applies to OBP_Precision.AmiDARK wrote:Here is my personal function to load images (using datatypes) in the AmiDARK Engine.
- Thu Jan 10, 2013 8:19 pm
- Forum: General Developer Support
- Topic: Window.class and IDCMP
- Replies: 7
- Views: 3172
Re: Window.class and IDCMP
Depending on how different the windows are in their behaviour and purpose and on what the application does between the input events, it might be an idea to create a seperate process for each window. This surely will result in the highest possible responsiveness of your application and it might give ...
- Thu Jan 10, 2013 5:49 pm
- Forum: General Developer Support
- Topic: Intuition input from multiple windows
- Replies: 7
- Views: 4261
Re: Intuition input from multiple windows
Did you consider the IDCMPWindow pointer in the IntuiMessage structure? But this is a two step way because the IDCMPWindow pointer pionts to the struct Window and not to the WindowObject. There is no official way to get the object pointer from the window pointer, or is there? You could store the ob...