logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
vienna  
#1 Posted : Wednesday, December 30, 2009 5:21:52 AM(UTC)
vienna

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 12/14/2009(UTC)
Posts: 140
Location: Austria

Hi,
I'm new to Metastock, the Forum and also to MSX.

I tried to develop a C++ - dll which uses variants for the exchange of data with COM-interface calls. I'm not as familier with C++ as with Java or C# and so I tried to free all variants with VariantClear and SafeArrayDestroy (as I have seen in some examples).

The dll works really fine with MSXTest.exe and it also works fine with Metastocks 11 - but when I'm closing the chart with the external function in it, Metastock crashes with a memory error.

If I don’t free all data variants (e.g. with SafeArrayDestroy), in my dll – MetaStock won’t abort with this error (on closing the chart). But then the memory usage of Metastocks will increase over a longer period of time.

Maybe someone out there knows such a problem and can give me a hint?

thanks a lot!



Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.