Compiling some code in MVS2012 that has always compiled for me in the past. I get these "uninitialzed local variable" 'table' used. Where table is declared as a pointer to ProDwgTable. Like ProDwgtable *table;
How would you even initialize such a variable?
The call that reference table and that throws this flag is:
tkerr = ProDwgtableRetrieve((ProDrawing)drawing, wName, wPath, 0, point, (ProMdl)solids, NULL, table);
Thanks for any help!
Solved! Go to Solution.
In C/C++ Program it is always best practice to use NULL Pointers
1. Always initialize pointer variables as NULL.
2. Always perform NULL check before accessing any pointer.
Refer this link for more information