bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-glpk] Re: C#; Error detected in file ..\src\glplib07.c at line 147


From: Andrew Makhorin
Subject: [Bug-glpk] Re: C#; Error detected in file ..\src\glplib07.c at line 147
Date: Sun, 30 Nov 2008 23:55:20 +0300

> I tried to run your example, t1.cs, with MS Visual Studio 2008, and
> encountered an error. Stripping the code off I detected that the error
> happens in the destructor.

I found what causes the bug. Looks like a system call to DllMain due
to the reason DLL_THREAD_DETACH or DLL_PROCESS_DETACH (in which case
glpk frees its environment and deallocates all memory blocks) *precedes*
a call to the destructor.

Probably a windows-specific function DllMain must be removed from the
glpk codebase.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]