My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 58: cpp.io.File.write gives error when run
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Sep 2010


 
Reported by beatofth...@gmail.com, Aug 17, 2010
Attached file gives example code.

Program compiles fine, but when run gives the following error:

Terminal error type not string, File .//libs/std/File.cpp, line 78

This is part of a larger code (WavPack audio decoder) that compiled/run with no issues with haxe 2.04

Running haxe 2.06 and latest hxcpp. Running on Ubuntu linux.


FileWriteFails.hx
161 bytes   View   Download
Aug 19, 2010
#1 adn...@gmail.com
See this related issue posted on haxe googlecode:
https://code.google.com/p/haxe/issues/detail?id=173
Removing '__s' gets rid of the error.

Jan
Sep 10, 2010
Project Member #2 gameh...@gmail.com
Thanks for this fix - I've put into haxe svn , as well as added a little solution for next version of hxcpp.
Status: Fixed
Sep 24, 2010
#3 wats...@gmail.com
is it OK?
Jan 17, 2011
#4 Ed.Ryz...@gmail.com
It is still not working.
2.06, Windows.

Workaround (from File.hx):

class FileWriteWorks
{
    private static var file_open = cpp.Lib.load("std","file_open",2);
    public static function main()	
    {
       var fout = new FileOutput(file_open('1.txt',"w"));
    }
}


Powered by Google Project Hosting