Re: [fpc-pascal] JSON RPC changes in 3.3.1

2022-09-28 Thread Hairy Pixels via fpc-pascal
> On Sep 28, 2022, at 1:51 PM, Hairy Pixels wrote: > > The question then is did they change something in 3.3.1 in regards to how > parameters can be sent? The error "Parameters must be passed in an object or > an array.” Suggests maybe I was sending the params as some other type and > this

[fpc-pascal] Lazarus Release 2.2.4

2022-09-28 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the release of Lazarus 2.2.4. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2

[fpc-pascal] TJSONParser crash

2022-09-28 Thread Hairy Pixels via fpc-pascal
Ok I narrowed down this bug I get with 3.2.2 to TJSONParser. I’m so confused as to what changed. FormatJSON prints the JSON as expected but AsString crashes and gives the error I was seeing from the RPC which it trapped as an exception. When it’s send across the RPC layer it must call AsString

Re: [fpc-pascal] JSON RPC changes in 3.3.1

2022-09-28 Thread Luca Olivetti via fpc-pascal
El 28/9/22 a les 8:51, Hairy Pixels via fpc-pascal ha escrit: On Sep 28, 2022, at 1:34 PM, Luca Olivetti via fpc-pascal wrote: Maybe related to this? https://lists.freepascal.org/pipermail/pas2js/2022-September/00.html The question then is did they change something in 3.3.1 in regard

Re: [fpc-pascal] TJSONParser crash

2022-09-28 Thread Sven Barth via fpc-pascal
Hairy Pixels via fpc-pascal schrieb am Mi., 28. Sep. 2022, 16:17: > Ok I narrowed down this bug I get with 3.2.2 to TJSONParser. > > I’m so confused as to what changed. FormatJSON prints the JSON as > expected but AsString crashes and gives the error I was seeing from the RPC > which it trapped

Re: [fpc-pascal] TJSONParser crash

2022-09-28 Thread Michael Van Canneyt via fpc-pascal
On Wed, 28 Sep 2022, Hairy Pixels via fpc-pascal wrote: Ok I narrowed down this bug I get with 3.2.2 to TJSONParser. I’m so confused as to what changed. FormatJSON prints the JSON as expected but AsString crashes and gives the error I was seeing from the RPC which it trapped as an excepti

Re: [fpc-pascal] JSON RPC changes in 3.3.1

2022-09-28 Thread Michael Van Canneyt via fpc-pascal
On Wed, 28 Sep 2022, Hairy Pixels via fpc-pascal wrote: On Sep 28, 2022, at 1:34 PM, Luca Olivetti via fpc-pascal wrote: Maybe related to this? https://lists.freepascal.org/pipermail/pas2js/2022-September/00.html The question then is did they change something in 3.3.1 in regards t

Re: [fpc-pascal] TJSONParser crash

2022-09-28 Thread Michael Van Canneyt via fpc-pascal
On Wed, 28 Sep 2022, Michael Van Canneyt via fpc-pascal wrote: On Wed, 28 Sep 2022, Hairy Pixels via fpc-pascal wrote: Ok I narrowed down this bug I get with 3.2.2 to TJSONParser. I’m so confused as to what changed. FormatJSON prints the JSON as expected but AsString crashes and gives th

Re: [fpc-pascal] TJSONParser crash

2022-09-28 Thread Hairy Pixels via fpc-pascal
> On Sep 28, 2022, at 10:32 PM, Michael Van Canneyt > wrote: > > Of course, as AsString will not work on a TJSONObject. AsString will only > work on the simple types, not on the object or array types or null. Of course. :P Ok I was just being stupid and let one of those calls slip in as I