C
Curious
Hi,
I have a project "GrabTritonData_HiFreq" that uses some functions that
are frequently used. Therefore, I've created a separate project
"LibraryCommon" that contains these functions. One of the functions in
"LibraryCommon" is "FindInitialLow".
I call the function "FindInitialLow" in "LibraryCommon" from
"GrabTritonData_HiFreq", and it seems that there is an issue with
object casting in "FindInitialLow".
Details are below:
// Each item in mHistBucketList is "Bucket" type.
// Since this is called from "GrabTritonData_HiFreq" project,
// it's therefore, "GrabTritonData_HiFreq.Bucket" type
private Bucket FindInitialLow (ArrayList mHistBucketList,
double mThreshold)
{
Bucket mInitialLow = null;
// Exception here -- dp is of type "LibraryCommon.Bucket"
in debugger, while each item
// in mHistBucketList is "GrabTritonData_HiFreq.Bucket"
type
foreach (Bucket dp in mHistBucketList)
{
// Code omitted here
}
return mInitialLow;
}
Any suggestion on how to get this resolved? Thanks.
I have a project "GrabTritonData_HiFreq" that uses some functions that
are frequently used. Therefore, I've created a separate project
"LibraryCommon" that contains these functions. One of the functions in
"LibraryCommon" is "FindInitialLow".
I call the function "FindInitialLow" in "LibraryCommon" from
"GrabTritonData_HiFreq", and it seems that there is an issue with
object casting in "FindInitialLow".
Details are below:
// Each item in mHistBucketList is "Bucket" type.
// Since this is called from "GrabTritonData_HiFreq" project,
// it's therefore, "GrabTritonData_HiFreq.Bucket" type
private Bucket FindInitialLow (ArrayList mHistBucketList,
double mThreshold)
{
Bucket mInitialLow = null;
// Exception here -- dp is of type "LibraryCommon.Bucket"
in debugger, while each item
// in mHistBucketList is "GrabTritonData_HiFreq.Bucket"
type
foreach (Bucket dp in mHistBucketList)
{
// Code omitted here
}
return mInitialLow;
}
Any suggestion on how to get this resolved? Thanks.