Yesterday i was wondering if a can use some clarion code in a new ASP.NET MVC5 project…
I do some basic step from a simple test.
-
create a simple asp.net mvc project.
-
Create a vanilla clarion exportable procedure with a few parameters (bstring, long) and pascal calling convention.
The experimental procedure basically open a tps file (Customer file), do some clarion magic code and return the customer name…
-
After that i prototype clarion procedure in .
-
load the clarion dll using kernel32 loadLibrary…
-
make a vanilla call to clarion code and it seems to work just fine.
-
unload clarion dll using freelibrary
Now i was trying to do something more complex and now instead of opening a tps file i was opening a sql table (using MSSQL driver), do some clarion magic code (for testing purpose i was only doing a count over de table) and then close file…
All was fine until i call freelibrary in the net side…the programs hangs nothing else happen…
(maybe is something with MSSQL driver but it seems unprobably)
Dont know way and i am getting lost.
Any help? ideas?