02-05-2007 03:19 AM
02-22-2007 01:54 AM - edited 02-22-2007 01:54 AM
Message Edited by Fabio_81 on 02-22-2007 01:54 AM
02-26-2007 07:12 AM
Hello Fabio,
thank you for your help. I found that the behavior is due to GlobalFree (pAdapterInfo) istruction; .... from msdn(http://msdn2.microsoft.com/en-us/library/aa366579.aspx😞
[...] If an application is running under a debug version of the system, GlobalFree will issue a message that tells you that a locked object is being freed. If you are debugging the application, GlobalFree will enter a breakpoint just before freeing a locked object. This allows you to verify the intended behavior, then continue execution [...]
I didn't look before at the MSDN because in the older versions of CVI (and WinSDK) I didn't see the behavior and I thought that the problem concerned CVI.
So I changed "GlobalFree()" to a simple "free()" and now all is ok.