Back to the Vavoom Forum Archives


Forum

[Fixed] VavoomC String

Mon, 24 Mar 2008 21:22:04

Drawn

Hello i'd like to post a Bug. At the moment you can't use strings as out parameters. I think OPC_AssignStrDrop fails. The statement pointer shows to the wrong memory. The "new" string at sp[-2] is wrong. Could that be?? I debugged a little and i think sp[-3] would be the right pointer. Example Opcodes: This calls the the output Method: 25: LocalValue0 26: LocalValue0 27: Offset mTestStr 28: VCall String_Output 2 And now the Receiving Method: 0: LocalValue1 1: PushString"Output String" 2: AssignStrDrop 3: LocalAddress1 I think the the OPC_LocalValue1 opcode increments the out parameter. So that AssignStrDrop fails. The same code should work if String_Ouput is native, but i don't have tested it. Bye Drawn
Tue, 25 Mar 2008 10:56:25

Janis Legzdinsh

Fixed.
Tue, 25 Mar 2008 18:40:24

Drawn

Is this already in the trunk???
Wed, 26 Mar 2008 00:02:28

Janis Legzdinsh

Yes

Back to the Vavoom Forum Archives