Link to home
Start Free TrialLog in
Avatar of sn1fflez
sn1fflez

asked on

Help with: object contains non-primitive or non-blittable data

Hello can anyone help me with the following error? I have attached a screen shot.
Also see the declaration statements of the pertinent functions.
GL-Functions.docx
Current-Error.bmp
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

You can only marshal pinned delegates that have blittable types.  The following reference MSDN article talks about blittable and non-blittable types.

Blittable and Non-Blittable Types
http://msdn.microsoft.com/en-us/library/75dwhxf7(v=VS.100).aspx

Why are you using the delegates, instead of passing the arguments to the p/invoke declarations directly?
ASKER CERTIFIED SOLUTION
Avatar of sn1fflez
sn1fflez

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sn1fflez
sn1fflez

ASKER

I solved the problem