1. Re[2]: Any bug on compiled abort()?

R> One thing I see in the code is that it tries to call
R> FreeLibrary() on all open .dll's.
R> I wonder if you opened a .dll, and FreeLibrary is having
R> problems with it.

I did use my own dll (to speed up cpu intensive routines), but since I
have not much experience with making dlls, I might have made error in
the DllMain routine. My DllMain routine is very simple, like this:

BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
{
    return TRUE;
}

Is there any problem with this?

R> I wonder also, if a "DOS" window is open
R> saying "Press Enter" or something, and not allowing
R> the Windows window to close.

OK, I will ask him later. It could be possible.

Thanks.

new topic     » topic index » view message » categorize

2. Re: Re[2]: Any bug on compiled abort()?

akusaya wrote:
> I did use my own dll (to speed up cpu intensive routines), but since I
> have not much experience with making dlls, I might have made error in
> the DllMain routine. My DllMain routine is very simple, like this:
> 
> BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
> {
>     return TRUE;
> }
> 
> Is there any problem with this?

I don't see anything wrong with it, but I'm not
an expert on C .dlls. I learned what I had to,
a long time ago, to make Euphoria .dlls from the translator. 
I found the documentation available on C .dll creation to
be very murky and very inconsistent across the various 
C compilers.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu