Page 1 of 1

VB6 crashing second time program loads

Posted: Sun Apr 21, 2019 12:32 am
by prime clinical systems
Hi I previously had this issue see post viewtopic.php?f=66&t=28884&p=111964&hilit=vb6#p111964 and was fixed in V6 Build 323, I have upgraded to V8, and now same behavior if the form with the editor control is launched from a button on the main form. When closing the form with the editor, and clicking button again to show the editor form it crashes with Automation error, object invoked disconnect from clients... no document loads, and click close on editor form crashes vb, both in compiled mode and inside the VB IDE. err.number = -2147417848 note, vb6 one cannot use the FormatHRESULT as asked.

I have enclosed very small sample program.. Please help.

Re: VB6 crashing second time program loads

Posted: Mon Apr 22, 2019 7:15 am
by Sasha - Tracker Dev Team
Hello prime clinical systems,

We will investigate this and hopefully can find a solution.

Cheers,
Alex

Re: VB6 crashing second time program loads

Posted: Mon Apr 29, 2019 3:55 pm
by prime clinical systems
Gentlemen, any progress on this issue?
Thanks

Re: VB6 crashing second time program loads

Posted: Thu May 02, 2019 7:09 am
by Sasha - Tracker Dev Team
Hello prime clinical systems,

The developer who looks into the VB6 problems was not available for some time. He said that he had looked into this one but has not found a cause of this yet.

Cheers,
Alex

Re: VB6 crashing second time program loads

Posted: Fri May 31, 2019 2:42 pm
by prime clinical systems
Please help with this, another month has passed. Thanks

Re: VB6 crashing second time program loads

Posted: Mon Jun 03, 2019 8:48 am
by Sasha - Tracker Dev Team
Hello prime clinical systems,

I did remind him of this issue - so basically all we can do is wait until he has time for this one.

Cheers,
Alex

Re: VB6 crashing second time program loads

Posted: Thu Jun 06, 2019 6:51 am
by Sasha - Tracker Dev Team
Hello prime clinical systems,

My colleague finally had some time for this matter and he gave me this fix:
vb6fix.zip
(39.92 KiB) Downloaded 80 times
Also, he told me that you have closed the form and reopened it again. That you can only do if you have the IPXV_Inst created and initialized before once and then after all of the work, you should Shutdown it once. As the IPXV_Inst is a singleton for an entire process and won't destroy correctly when destroying more then one time per process. There were several topics about this one already.

Cheers,
Alex

Re: VB6 crashing second time program loads

Posted: Tue Jun 11, 2019 5:42 pm
by prime clinical systems
Thanks, so at least it works in compiled mode, but not in IDE, still crashes as before, second time opening program, and previous posts as I understood this creation of Inst was not needed for VB6... oh well, thanks again.

Re: VB6 crashing second time program loads

Posted: Wed Jun 12, 2019 6:50 am
by Sasha - Tracker Dev Team
:)