P
Peter
I have made an ActiveX dll containing a COM interface with Borland C++
Builder.
The dll does some low level things and does not put of any dialogs or so.
This COM dll is used in .NET and seems to work very nicely in small example
apps without much GUI stuff.
However there's a big problem.
When the app in which the com object is instanciated contains a bit more GUI
stuff following error occurs :
A first chance exception of type 'System.ArithmeticException' occurred in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation.
The simpelest situation where it could be reproduced was
line 1 : make instace
line 2 : create font (fnt = New Font(,))
The exception always occurs on the second line.
I'm totally out of ideas.
I have removed everything out of the com object constructor, the dll
instance basically doesn't do much anymore and still the problem occurs.
please help as I'm stuck completely now. I have little or no experience
with .NET, I just provided a working COM object that for some reason doesn't
work well under .NET ?
Builder.
The dll does some low level things and does not put of any dialogs or so.
This COM dll is used in .NET and seems to work very nicely in small example
apps without much GUI stuff.
However there's a big problem.
When the app in which the com object is instanciated contains a bit more GUI
stuff following error occurs :
A first chance exception of type 'System.ArithmeticException' occurred in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation.
The simpelest situation where it could be reproduced was
line 1 : make instace
line 2 : create font (fnt = New Font(,))
The exception always occurs on the second line.
I'm totally out of ideas.
I have removed everything out of the com object constructor, the dll
instance basically doesn't do much anymore and still the problem occurs.
please help as I'm stuck completely now. I have little or no experience
with .NET, I just provided a working COM object that for some reason doesn't
work well under .NET ?