Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Thread-NULL_SECURITY_ATTRIBUTES

rjar
Beginner
444 Views
Hi,
I am running a Thread from my program but on compiling the following code I get some warning.

subroutine XXX
use dfmt
implicit none
integer hThread2,ThreadID3 ,NULL_SECURITY_ATTRIBUTES
hThread2=CreateThread(NULL_SECURITY_ATTRIBUTES,0, &
W_search_entry2, 0, 0, LOC(ThreadID3))

Warning: Variable NULL_SECURITY_ATTRIBUTES is used before its value has been defined:
hThread2=CreateThread(NULL_SECURITY_ATTRIBUTES,0, &

Can you help me,
RJAR
0 Kudos
1 Reply
Steven_L_Intel1
Employee
444 Views
NULL_SECURITY_ATTRIBUTES is not declared, so it becomes an implicitly declared variable which is uninitialized. After the line:

USE DFMT

add the line:

USE DFWINTY

That will provide the declaration of NULL_SECURITY_ATTRIBUTES.

Steve
0 Kudos
Reply