Click here to Skip to main content
15,885,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
while compiling the host code specificly this line of code:
cl_program program = clCreateProgramWithBinary(context, 1, &fpga_device, &length, (const unsigned char**)&binary, NULL, NULL);


I got this error:

 acl_util.h:100: safe_memcpy: Assertion `0 && "Program terminated, invalid memory access"' failed.
Aborted


What is this error mean? and why? how to fix it ?

What I have tried:

need help to fix this error to keep progressing in my code
Posted
Comments
Richard MacCutchan 14-Oct-21 11:56am    
It means what it say. You are trying to access a memory location which is not part of your address space. You really need to start using the debugger to find the problems in your code. It is impossible for anyone here to do it.
prother123 14-Oct-21 12:27pm    
can you please suggest a debugger ??
Richard MacCutchan 15-Oct-21 3:22am    
That will depend on which compiler and associated tools you are using to build the code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900