Re: now this is weird

John Reppy <[email protected]> Tue, 14 Oct 2008 09:38:16 +0100
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
What issues?  Matthias Blume is the right person to contact about
nlffi problems.

	- John

On Oct 14, 2008, at 3:55 AM, brian wrote:

> hey John,
>
> Yet another mac related problem.
>
> The code works perfectly on intel.
>
> I have issues with malloc through nlffi too on mac (which I work  
> around by using malloc through an nlffi wrapper).
>
> On Oct 13, 2008, at 12:18 AM, John Reppy wrote:
>
>> I missing some context here.
>>
>>  1) what version of SML/NJ aree you using?
>>
>>  2) what OS are you running on?
>>
>>  3) what are Writers.binXWriter/binYWriter doing?
>>
>>
>> On Oct 13, 2008, at 7:01 AM, brian wrote:
>>
>>>
>>> changing my code from :
>>>
>>>                print ("i="^Int.toString(i)^"\n");
>>> 		Writers.binXWriter("data/sync_"^Int.toString(i)^"_mag.bin", fft);
>>> 		Writers.binYWriter("data/sync_"^Int.toString(i)^"_phase.bin",  
>>> fft);
>>>
>>> to :
>>> 		Writers.binXWriter("data/sync_"^Int.toString(i)^"_mag.bin", fft);
>>> 		Writers.binYWriter("data/sync_"^Int.toString(i)^"_phase.bin",  
>>> fft);
>>>
>>>
>>> makes the program go from "works fine", to:
>>>
>>> uncaught exception Io [Io: openOut failed on "data/sync_52_mag.bin",
>>> Invalid argument]
>>>  raised at: Basis/Implementation/IO/bin-io-fn.sml:620.25-620.72
>>> -
>>>
>>> That's right, I just remove the print statement.
>>>
>>> WTF ?
>>>
>>> That's just gotta be a bug in the compiler.
>>>
>>> Brian
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's  
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win  
>>> great prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in  
>>> the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Smlnj-list mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>>>
>
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/