08-28-2005 02:54 AM
08-28-2005 03:58 AM
Some additional info:
1) The last line in the excel table doesn't contain the data it should, but instead #N/A appears in every cell
2) In Debug Output I get a message reagering a problem with invalid address on the Heap:
HEAP[myapp_dbg.exe]: Invalid Address specified to RtlSizeHeap( 00140000, 0016E838 )
Again any help would be appreciated.
Thanx!
---JM
08-29-2005 10:03 AM
08-29-2005 02:31 PM
Jojo,
In your code CA_VariantClear (&vArray[i*COLUMNS+j]), you might want to change it to CA_VariantClear (&vArray[(i*COLUMNS)+j]). I have noticed that CVI doesn't follow the good old "Please Excuse My Dear Aunt Sally" rules. For instance if I do a:
int * foo = malloc ( 10 + 1*(sizeof(int)) i will be allocated 14 bytes of memory
Where if I do a
int *foo = malloc ( (10+1)*sizeof(int))) I will be allocated 44 bytes of memory