This is very common case where i have about 2500 dll's.
All of those dll's are made with vb6.

Scenario: Run the main .exe file and call the .dll from it. When running Crystal report view it works as a charm.

Scenario 2: Run the .exe file which is made with .NET through debug mode works as a charm.

Scenario 3: Run the .exe file which is made with .NET through RUNTIME Throw the exception shown bellow.


Code:
> Description: The process was terminated due to an unhandled exception.
> Exception Info: exception code c0000005, exception address 0F5E6BD0
Full stack message available on link: https://pastebin.com/ujWSj0La

Tried with two ways.

1. Adding the .dll to .exe as a references

2. Adding it through `CreateObject`

This is one my my work.

Code:
  Dim obj As Object
    obj = CreateObject("Partneri.clPartneri")
    
    Microsoft.VisualBasic.CallByName(obj, "PrikaziFormu", CallType.Method, cConrADO,
                                             cConADO, False, "", cJezik, rTagovi, rPrevodi, rPrava, 0, 0, cUsername)
Please keep in mind: When running this through debug everything works great.

The only workaround which i am using now is going like Create .exe made in vb6. Call that .exe from .net exe and pass a option name as a parameter. On form load it will set up the object which works great.

Additional: When running crystal report print on load throws
Name:  4do4L.png
Views: 91
Size:  8.6 KB