Dynamic type for SQLite

Discussion about the open-source Phalanger [?] project.

Dynamic type for SQLite

Postby MaitreDede » May 30th, 2012, 3:30 pm

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 :)
MaitreDede
 
Posts: 29
Joined: May 22nd, 2012, 7:17 am

Re: Dynamic type for SQLite

Postby MaitreDede » May 30th, 2012, 3:58 pm

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...
MaitreDede
 
Posts: 29
Joined: May 22nd, 2012, 7:17 am


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 2 guests

User Control Panel

Login

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 77 on September 4th, 2018, 9:46 pm

Users browsing this forum: No registered users and 2 guests
Phalanger