Dynamic type for SQLite
2 posts
• Page 1 of 1
Dynamic type for SQLite
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
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
- MaitreDede
- Posts: 29
- Joined: May 22nd, 2012, 7:17 am
Re: Dynamic type for SQLite
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...
I will try to see what I can do...
- MaitreDede
- Posts: 29
- Joined: May 22nd, 2012, 7:17 am
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 11 guests