Losing the TypeConverters

Posts   
 
    
Posts: 256
Joined: 05-Jul-2010
# Posted on: 08-Jul-2010 11:11:04   

Hi

I have a working typeconverter. (Actually it is the example from within your manual.) This works, but everytime when I reload the project from disk (the next morning) the converter is Cleared out.

It looks like it doesn't save? Or might there be a reason why it is not loaded. The only thing special is that I save my typeconverter inside a specific "Additional" project directory.

Thanks

Alexander

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 08-Jul-2010 21:33:32   

Do you mean it is lost from the LLBLGen project, or the generated Visual Studio project...?

Matt

Posts: 256
Joined: 05-Jul-2010
# Posted on: 08-Jul-2010 21:40:07   

MTrinder wrote:

Do you mean it is lost from the LLBLGen project, or the generated Visual Studio project...?

Matt

Every time I would like to edit the project file again, (the llblgen file), I first have to set all the Typeconverters correct again.

If I look in the XML file, it mentions clearly the TypeConverter.

        <FieldMapping FieldName="Blocked" TargetFieldName="F_TAG_BLOCKED" TypeConverterToUse="GOnline.Funboo.Types.BooleanNumericConverter" />

I can also them, so they are known. They also work inside visual studio and in my app.

But, It is a converter for .net 4.0 (I made it work in the config) and I put my assembly inside an Alternate Directory.

I do think that when loading an project file, you probably load the typeconverters AFTER the rest?

<Property Name="AdditionalTypeConverterFolder" Value="C:\Development\funboo\Funboo\GOnline.Funboo.Types\bin\Release" />

In the attachment you will find my projectfile, my typelibrary and the xml file to glue these togheter.

Kind regards

Alexander

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 08-Jul-2010 21:48:49   

Please can you attach your project file, config file and type converter dll, and we'll see if we can reproduce this.

Which version of LLBLGen are you using ?

Matt

Posts: 256
Joined: 05-Jul-2010
# Posted on: 09-Jul-2010 05:53:06   

MTrinder wrote:

Please can you attach your project file, config file and type converter dll, and we'll see if we can reproduce this.

Which version of LLBLGen are you using ?

Matt

Hi

I'm using LLBLGen 3,downloaded the demo last week.
In my prior post you'll find all the stuff attached except for the config files. I'm also working on a 64-bit machine. But the shortcut after the installation seems to refer to the correct one.

I just performed the "ultimate" test. I have placed my files inside typefiles (dll en imports) inside C:\Program Files (x86)\Solutions Design\LLBLGen Pro v3.0\TypeConverters. Now everything works as a charm. Your designer should process the projectfile in two steps. a Step of loading the project libraries should be done inbetween.

Thanks

Alexander

Posts: 256
Joined: 05-Jul-2010
# Posted on: 09-Jul-2010 09:48:49   

Hi

I noticed you closed this issue, but it still is an issue. Copying it to the program files directory is only a workaround. If one has to work with multiple projects, it still is a problem.

Thanks

Alexander

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 09-Jul-2010 10:00:01   

What do you mean by:

I just performed the "ultimate" test. I have placed my files inside typefiles (dll en imports)

Posts: 256
Joined: 05-Jul-2010
# Posted on: 09-Jul-2010 10:05:42   

The editor allows me to place custom types and typeconverters in two places.

One = C:\Program Files (x86)\Solutions Design\LLBLGen Pro v3.0\Typeconverts...

And the other one I can define inside the projectfile by setting the AdditionalTypeConverterFolder property.

If I place my converters inside the AdditionalTypeConverterFolder, they are loaded "after" the project file is loaded. This causes the designer to invalidate them and sets them to null.

In order to make it back work, I need to reassign them or just not close the designer.

If I put them in the common folder (inside program files), I don't have this issue.

Hope this explains it?

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 09-Jul-2010 11:10:40   

In my prior post you'll find all the stuff attached except for the config files.

I can't find the attached files.

Posts: 256
Joined: 05-Jul-2010
# Posted on: 09-Jul-2010 11:16:00   

Walaa wrote:

In my prior post you'll find all the stuff attached except for the config files.

I can't find the attached files.

Let me try to attach it harder this time

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 12-Jul-2010 13:57:29   

Reproduced.

We'll investigate it and get back to you a.s.a.p

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 12-Jul-2010 14:18:30   

Odd indeed. We do probe for type converters in the folder specified as additional type converter folder after the project is loaded, but apparently too late... Looking into it.

(edit) Silly bug, everything is read correctly and probed correctly, but we keep two stores of type converters: one for the project and one for the designer. The project one is filled with the typeconverters obtained from the additional typeconverter folder, so we can unload it when the project is unloaded.

When the mappings are read we don't check the project specific store. Fixed in next build (Jul 12th)

Frans Bouma | Lead developer LLBLGen Pro