Transform PTR type

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
User avatar
baramuse
Posts: 85
Joined: Tue Nov 29, 2022 8:31 am
Location: France

Transform PTR type

Post by baramuse »

Hi all,

we had a nasty crash in one of our datawindow.
It seems to come from the fact that we have one of the column data as PTR.

I've followed the code and it seems to crash in the Transform function
https://github.com/X-Sharp/XSharpPublic ... m.prg#L826

From what I understand of the code here, as PTR is not one of the switch, it will try to call the #Transform function on the PTR object, if that function exists, which is not.
Hence the throw on line 851.

Should I presume we can't pass a PTR in a datawindow column ? (It actually is a BBrowser).
Sorry if it's a weird question, I really don't have any experience with the BBrowser/Transform/picture

Best regards.
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: Transform PTR type

Post by Chris »

Hi Basile,

It's indeed a bug in the function, will fix it and will send you an updated dll, so you won't need to change anything in your code. I'm afraid I can't do it today (will be out of the office for the rest of the day), but will send it early tomorrow morning.

From a quick look, I see that in VO Transform() with a PTR argument always returns an empty string, no matter the picture you use, is that what you expect?
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: Transform PTR type

Post by Chris »

Hi Basile,

Can you please try the updated dll I posted here:

https://github.com/X-Sharp/XSharpPublic/issues/1428

You need to install it in the GAC, in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\XSharp.RT\v4.0_2.6.0.0__ed555a0467764586
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
baramuse
Posts: 85
Joined: Tue Nov 29, 2022 8:31 am
Location: France

Re: Transform PTR type

Post by baramuse »

Hi Chris,

it does indeed prevent the crash.

Cheers !
Post Reply