From: | Alexander Niven-Jenkins |
Date: | 29 Sep 2000 at 19:49:01 |
Subject: | Re: How do I find this problem |
Hiya Gunther,
On 29-Sep-00, you wrote:
>> There is something wrong, well wrong is too strong a word, changed
>> with the amiga.lib that comes with the OS 2.1 dev CD, basically I found
>> that some of the functions (with HSC) would crash randomly unless I
>> slowed down the program, on changing to the exec.library equivalents all
>> was well.
> Could explain this a bit? I don't understand the "slowing down" part
> and the changing to "exec.library equivalents". Does that mean, first
> you used stubs from amiga.lib and then inline calls?
As with Jack I had a program that worked perfectly with he 3.1 includes.
I upgraded to he 3.5 includes and bang; random crashes.
On removing random bits of code the program would work. Even if the
removed code had nothing to do with the point where it crashed. I was not
gettng enforcer hits though.
The other thing that for the most part worked was shoving in a load of
Delay()'s; as you can imagine not a practical solution although it did help
narrow down the problem area.
The problem functions were from amiga.lib CreatePort() and CreateStdIO().
After talking to Olaf about it I changed to using the exec.library
equivalents CreateMsgPort() and CreateIORequest().
And all works fine :-)
This was with HisoftC++ I am now using StormC and have been for a while,
although I still avoid those functions in amiga.lib. jacks symtoms were
identical to mine, what appeared to be random crashes. Hence I mentioned
my problems of the time.
Kind regards...
Alex