Bug or me?

G

GB

OK. This one is driving me crazy and I need help before I toss my computer
out the window.

I have a winui application that references a dll. That dll references
another dll. In the first dll I call a function in the second dll that
returns an arraylist. If I call the first dll from the winui application,
the arraylist is returned with no problem. When I call the first dll from
the winui application and then have the first dll call the second dll that
creates and populates the arraylist, the array will not be returned. I
can't see or understand why the array list will not return to the calling
application. I other functions that return string and integers with no
error. A sample if the code is below:

'' Win UI
private sub SummaryLoadRowItems
''' do some work
dim str as string
dim arrlist as arraylist =
KioskClientBusinessFacadeProject.GetSummaryRowItems
str = arrlist(0)
end sub

'''KioskClientBusinessFacadeProject.dll
module BusinessRulesInterface
public function GetSummaryRowItems() as arraylist
return KioskBusinessRulesProject.GetSummaryRowItems
end module

''' KioskBusinessRulesProject.dll
public function GetSummaryRowItems() as arraylist
GetSummaryRowItems as new arraylist
GetSummaryRowItems.add("Test")
end function

Please, any help would be great.

Gary
 
C

Chris Dunaway

''' KioskBusinessRulesProject.dll
public function GetSummaryRowItems() as arraylist
GetSummaryRowItems as new arraylist
GetSummaryRowItems.add("Test")
end function

I'm not entirely sure what your problem is, but the function definition
above looks strange to me. It doesn't seem to return a value. Does
something like this work:

Public Function GetSummaryRowItems() As ArrayList
Dim al As New ArrayList
al.Add("Test")
Return al
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top