47: [YAYA] getting error in FREADBIN

ばぐとら研究所統合ToDo管理システムへようこそ!バグ報告に限らず様々な要望を扱うシステムです。
まずは同じような内容がないか [検索] した後、無ければ [新規レポート] で作ってみましょう。
Windows 8以降、高速スタートアップが実装された関係で、SSP以外の部分に起因する不具合発生が出てきました。
何か挙動がおかしいかな、と思ったら、一度再起動(シャットダウン->起動ではなく)してみてから再度確かめてみてください。

最新状況

名前 ぽな@ばぐとら
概要 [YAYA] getting error in FREADBIN
状態 [済]処理済
作成日時 2008-11-30 00:27:13
最終更新日時 2011-06-09 04:38:54

履歴

1 | 2008-11-30 00:27:13 | [−]新規
Roy
When I use FREADBIN with FSIZE, YAYA returns -1. e.g.:

FOPEN("var/data.txt","r")
_data = 
FREADBIN("var/data.txt",FSIZE("var/data.txt"))

_data will become -1.

If I use 'FSIZE("var/data.txt") - 1', YAYA access 
memory 0xfffffffe and crashs.

2 | 2008-11-30 01:49:53 | [○]対応中
ukiya
> FOPEN("var/data.txt","r")
> _data = FREADBIN("var/data.txt",FSIZE("var/data.txt"))

In this codes, FSIZE returns -1, because FOPEN locks 
var/data.txt,
so FREADBIN fails.

If you change the codes to following, it will succeed;

 _size = FSIZE("var/data.txt")
 FOPEN("var/data.txt","r")
 _data = FREADBIN("var/data.txt",_size)

And I fixed and commited FSIZE system function logic,
wait for release.

3 | 2008-11-30 18:06:20 | [○]対応中
Roy
> > FOPEN("var/data.txt","r")
> > _data = FREADBIN("var/data.txt",FSIZE("var/data.txt"))
> 
> In this codes, FSIZE returns -1, because FOPEN locks 
> var/data.txt,
> so FREADBIN fails.
> 
> If you change the codes to following, it will succeed;
> 
>  _size = FSIZE("var/data.txt")
>  FOPEN("var/data.txt","r")
>  _data = FREADBIN("var/data.txt",_size)
> 
> And I fixed and commited FSIZE system function logic,
> wait for release.
FSIZE is fixed. Thanks.
and if I use FREADBIN without second parameter( 
FREADBIN("var/data.txt") ), YAYA freezes.

4 | 2008-11-30 19:05:25 | [○]対応中
ukiya
> and if I use FREADBIN without second parameter( 
> FREADBIN("var/data.txt") ), YAYA freezes.

If FREADBIN gets less than 2 arguments, warning W0008 occurs,
not freezes on my environment... why?

By the way, FREADBIN crashes if second argument is less than 1.
I fixed it.

5 | 2011-06-09 04:38:54 | [済]処理済
ぽな@ばぐとら
タイムアウト(再現せず)

[リプライをつける]
Bug Tracking System 影舞 0.8.8
Powered by Ruby 1.8.7