Page 1 of 1

Dynamic type for SQLite

PostPosted: May 30th, 2012, 3:30 pm
by MaitreDede
Hi,

In my goal to write a SQLite fully managed extension, I have to create at runtime a class for UDF (user defined function) creation (doc).

It seams easy when statically created (according to this post), but I have to do it at runtime.

I think I will create a type that will call the UDF callback function at runtime. Is there a better and/or "Phalanger" way to do it ?

I can create the type with CodeDom, compile it and use it, but I think this will make memory leaks... So that is why I am asking :)

Re: Dynamic type for SQLite

PostPosted: May 30th, 2012, 3:58 pm
by MaitreDede
Hmm, I think any solution I will try won't work until I hack into System.Data.SQLite source code... Either I need to add some "ThreadStatic" to code, or I have to add some bits to make it work...

I will try to see what I can do...