[Gambas-user] Issue 104 in gambas: Byte[].FromString does not work
gambas at ...2524...
gambas at ...2524...
Sun Sep 11 00:04:31 CEST 2011
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 104 by emil.len... at ...626...: Byte[].FromString does not work
http://code.google.com/p/gambas/issues/detail?id=104
1) Describe the problem.
The static function Byte[].FromString does not work.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r4113
Operating system: Linux
Architecture: x86_64
3) Provide a little project that reproduces the bug or the crash.
Anything that cals it, like Byte[].FromString("hello!")
5) Explain clearly how to reproduce the bug or the crash.
Run the code, and watch it crash.
It seems to be fixed by changing "memcpy(THIS->data, string, length);"
to "memcpy(array->data, string, length);" on line 1235 in gbx_c_array.c.
More information about the User
mailing list