View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003040 | NoesisGUI | Unity | public | 2024-01-23 17:10 | 2024-01-24 10:13 |
| Reporter | Otter | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.2.2 | ||||
| Target Version | 3.2.3 | Fixed in Version | 3.2.3 | ||
| Summary | 0003040: InvalidOperationException: Native type 'TypeConverter' is not registered | ||||
| Description | When using Type property in MarkupExtension: and using it like this: [code] It throws: InvalidOperationException: Native type 'TypeConverter' is not registered | ||||
| Platform | Any | ||||
|
Could you please try with the following patch. TypePropertyBug.patch (870 bytes)
Index: Extend.cs
===================================================================
--- Extend.cs (revision 13230)
+++ Extend.cs (working copy)
@@ -5193,7 +5193,7 @@
{
Type type = GetPropertyValue<Type>(GetProperty(nativeType, propertyIndex),
GetExtendInstance(cPtr));
- return GetNativeType(type);
+ return type != null ? GetNativeType(type) : IntPtr.Zero;
}
catch (Exception e)
{
@@ -5665,7 +5665,7 @@
{
try
{
- NativeTypeInfo info = GetNativeTypeInfo(cPtr);
+ NativeTypeInfo info = GetNativeTypeInfo(val);
SetPropertyValue<Type>(GetProperty(nativeType, propertyIndex),
GetExtendInstance(cPtr), info.Type);
}
|
|
|
The patch fixed the bug and now it works as expected, thanks! |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2024-01-23 17:10 | Otter | New Issue | |
| 2024-01-23 17:46 | sfernandez | Assigned To | => sfernandez |
| 2024-01-23 17:46 | sfernandez | Status | new => assigned |
| 2024-01-23 17:46 | sfernandez | Target Version | => 3.2.3 |
| 2024-01-23 17:48 | sfernandez | Note Added: 0009110 | |
| 2024-01-23 17:48 | sfernandez | File Added: TypePropertyBug.patch | |
| 2024-01-23 17:48 | sfernandez | Status | assigned => feedback |
| 2024-01-24 08:51 | Otter | Note Added: 0009112 | |
| 2024-01-24 08:51 | Otter | Status | feedback => assigned |
| 2024-01-24 10:13 | sfernandez | Status | assigned => resolved |
| 2024-01-24 10:13 | sfernandez | Resolution | open => fixed |
| 2024-01-24 10:13 | sfernandez | Fixed in Version | => 3.2.3 |
| 2025-10-10 13:29 | jsantos | Category | Unity3D => Unity |