Click here to Skip to main content
15,897,334 members

Comments by Khawar Abbas1 (Top 2 by date)

Khawar Abbas1 1-Nov-10 18:33pm View    
thnaks alot karle
now the function return 0 which mean its is successfull
but now there is a exeption in

Marshal.FreeHGlobal(ptr);
----------------------------------------------------------------------
the exeption is

----------------------------------------------------


Windows has triggered a breakpoint in WindowsFormsApplication12.exe.

This may be due to a corruption of the heap, which indicates a bug in WindowsFormsApplication12.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while WindowsFormsApplication12.exe has focus.

The output window may have more diagnostic information.
--------------------------------------------------------

my code is
--------------------------------------------------------
rc = CRT450_ReadCard(a, 0x31, 0x0F, ref isouttime, ref bytemod, ptr, ref length);

Marshal.FreeHGlobal(ptr);
---------------------------------------------
also how i will get back the data to byte array from ptr
Thanks
Shuaib
Khawar Abbas1 31-Oct-10 16:24pm View    
what is the error