[6.01] InsertJSONStructure Debugger Crash

Post bugreports for the Windows version here
Opcode
Enthusiast
Enthusiast
Posts: 137
Joined: Thu Jul 18, 2013 4:58 am

[6.01] InsertJSONStructure Debugger Crash

Post by Opcode »

When running the following, the debugger just quits unexpectedly without throwing an error ("invalid json value").

Both ASM + C backends.

Code: Select all

Structure CREATE_MESSAGE
  content.s
  nonce.s
  tts.b
  Array embeds.s(0)
EndStructure

jsonBuffer = CreateJSON(#PB_Any)
d.CREATE_MESSAGE

d\content = "hi"
InsertJSONStructure(jsonBuffer, @d, CREATE_MESSAGE)

Debug ComposeJSON(jsonBuffer, #PB_JSON_PrettyPrint)
Correcting it executes fine.

Code: Select all

Structure CREATE_MESSAGE
  content.s
  nonce.s
  tts.b
  Array embeds.s(0)
EndStructure

jsonBuffer = CreateJSON(#PB_Any)
d.CREATE_MESSAGE

d\content = "hi"
InsertJSONStructure(JSONValue(jsonBuffer), @d, CREATE_MESSAGE)

Debug ComposeJSON(jsonBuffer, #PB_JSON_PrettyPrint)

Haven't tested on other OS.