grin
Okey no problem posting it.. I notice that making a dll plug-in and accessing functions from that causes this issue..

I'll post the simple code that will cause same error also..

DLL:

Code:
#include "stdafx.h"

// DLLFUNC is declared in adll.h as "#define DLLFUNC extern "C" __declspec(dllexport)"

DLLFUNC var multi_func(var x, var n)
{
	return ( _VAR( _FLOAT(x)*_FLOAT(n) ) );
}



that is the exported function from the dll I"ve been using in my Lite-C code.. assumes that the all other files needed for the dll works fine, I'm just following the manual.. This is not my actual project made but this produces the same problem also as I tested it..

And here's my Lite-C code..
Code:
#include <acknex.h>
#include <default.c>

//function from a dll
//--------------------------------------------------------------------
function multi_func(var x, var n);
//temporary variable
//--------------------------------------------------------------------
var dis_dll  = 0;
PANEL* display_dll =
{
	digits(450, 200, "Sample function: %0.2f", *, 1, dis_dll);
	layer = 2;
	flags = SHOW;
}

void main()
{
	video_set(1024, 768, 32, 2);	
	while(1)
	{
		dis_dll = multi_func(3,2);
		wait(1);                
	}
}



this works well and produce the expected output.. It's just that acknex.exe is not terminated successfully after closing..

I can't see anything wrong here.. Been tracing this and making work around for almost 5 hours but still the problem occurs.. frown



Can't is not an option™