Search found 555 matches

by chris
Mon Oct 24, 2011 10:58 pm
Forum: General AmigaOS
Topic: newlib ftello64/fseeko64 not working
Replies: 2
Views: 2005

Re: newlib ftello64/fseeko64 not working

xenic wrote:@chris
See what happens if you change fopen() to fopen64(). According to my C reference these functions are supposed to return -1 for an error but in newlib EOF is defined as -1 also. That seems like it could lead to some confusion.
Ah, that works, very interesting! - thanks
by chris
Sat Oct 22, 2011 11:03 pm
Forum: General AmigaOS
Topic: newlib ftello64/fseeko64 not working
Replies: 2
Views: 2005

newlib ftello64/fseeko64 not working

Maybe they are not implemented, but if so I'm surprised they are present in the includes. Here is an example I nicked from elsewhere (http://old.nabble.com/Re%3A-ftello64-returning-wrong-values-p703471.html): #include <stdio.h> int main() { FILE * fp; _off64_t pos; fp = fopen("test.dat", &...
by chris
Sun Oct 16, 2011 10:13 pm
Forum: General AmigaOS
Topic: Multiview - Text files
Replies: 6
Views: 3734

Re: Multiview - Text files

@xenic Obviously I don't know exactly how the detection works, but it is the detection at the datatypes.library level, not at text.datatype level. Your tests show that it is being a bit cleverer then I gave it credit for - maybe it is the ratio of ASCII to non-ASCII characters in [unspecified header...
by chris
Sun Oct 16, 2011 10:10 pm
Forum: General AmigaOS
Topic: Upd3 problem with Multiview and AmigaGuide
Replies: 4
Views: 2885

Re: Upd3 problem with Multiview and AmigaGuide

This is a long-standing bug which also occurs with linked plain text files (actually it happening with images might be new, not sure). I believe it has been reported on these forums already.
by chris
Sat Oct 08, 2011 4:41 pm
Forum: General AmigaOS
Topic: popupmenu.class disabled keyboard shortcuts
Replies: 0
Views: 2272

popupmenu.class disabled keyboard shortcuts

Menu items in popupmenu.class that have a keyboard shortcut, and have been disabled do not show the keyboard shortcut part of the item in a disabled state. So if a menu item is created with the following tags: PMIA_Title, "Menu item" PMIA_Disabled, TRUE, PMIA_CommKey, "A", The te...
by chris
Thu Oct 06, 2011 6:06 pm
Forum: General Developer Support
Topic: [FIXED] popupmenu causes intuition freeze
Replies: 22
Views: 21232

Re: popupmenu causes intuition freeze

Nobody can trace this crashlog through popupmenu.library/class and give an indication of what is causing the crash?
by chris
Tue Oct 04, 2011 6:45 pm
Forum: General AmigaOS
Topic: Multiview - Text files
Replies: 6
Views: 3734

Re: Multiview - Text files

datatypes.library differentiates between ASCII, binary and IFF files, and only passes these to matching descriptors. If you have a file that datatypes.library has identified as binary, it will never get checked by any descriptors for ASCII filetypes (such as plain text, certain PNM variants etc). as...
by chris
Wed Sep 28, 2011 11:55 pm
Forum: General Developer Support
Topic: [FIXED] popupmenu causes intuition freeze
Replies: 22
Views: 21232

Re: popupmenu causes intuition freeze

Infurther developments it appears this is still occuring if ActivateGadget() is called before PMOPEN. If ActivateGdget() is called more than once before PMOPEN then the crash is not quite as serious, and the crashlog gives some offsets into popupmenu.library. I'm hoping these will provide some clues...
by chris
Sun Sep 25, 2011 11:09 am
Forum: General AmigaOS
Topic: Bug in CurrentDir() or possibly GetCurrentDirName() ?
Replies: 11
Views: 7498

Re: Bug in CurrentDir() or possibly GetCurrentDirName() ?

Can someone please confirm that the following behaviour is not intended, and is in fact a bug in AmigaOS4.1: If I perform CurrentDir(lock) using a lock on 'Volume:Folder', then GetCurrentDirName() unexpectedly still shows the old (unchanged) current directory. This looks like a bug to me. But if I ...
by chris
Mon Sep 19, 2011 9:17 pm
Forum: General AmigaOS
Topic: Prefs Draw is a bit of a mess, how best to tidy?`
Replies: 9
Views: 5459

Re: Prefs Draw is a bit of a mess, how best to tidy?`

My concept of messy is probably different than yours. If you want to see what I consider messy try adding Dopus4 with the BEHINDWB ToolType activated to WBStartup. With Update3 it causes WorkBench to open with an ugly grey background before loading the screen background image. I've been opening Dop...