Silicon Technix Forums

Please login or register.

Author Topic: Error when closing .exe  (Read 1395 times)

Offline Anonymous

  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Error when closing .exe
« on: May 10, 2006, 06:11:04 PM »
Hallo Babar,
   i\'ve always an error when i close the .exe created by a vb6 project. Also when i stop the project in debug i have the same error. Vb6 close in an unspected way. I correcly Unregister and unINIT the ocx before closing the form. Some help?

By fabio.
« Last Edit: January 01, 1970, 05:00:00 AM by Anonymous »

Offline Babar Shafiq Nazmi

  • Administrator
  • Senior Member
  • *****
  • Posts: 151
  • Karma: +87/-0
    • View Profile
    • http://www.silicontechnix.com
Error when closing .exe
« Reply #1 on: May 10, 2006, 06:26:15 PM »
Hi,

I think you are not calling Shutdown ?
call it in form unload or in end of your application. So it can terminate resources used in the session.

Regards,
« Last Edit: January 01, 1970, 05:00:00 AM by babar »
....God is the greatest Programmer....

http://www.silicontechnix.com

Offline Anonymous

  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #2 on: May 10, 2006, 10:42:52 PM »
the problem was that i wrote the ocx.shutdown inside the form_unload. the unload of the form is faster than the shutdown of the ocx. Now i use a timer that close the form about 1 sec after the shutdown of the ocx.

Thanks.

PS: only an other question: is it normal that during the development of my project in vb6 i can see a lot of icon of your ocx in my system tray?
« Last Edit: January 01, 1970, 05:00:00 AM by Anonymous »

Offline Babar Shafiq Nazmi

  • Administrator
  • Senior Member
  • *****
  • Posts: 151
  • Karma: +87/-0
    • View Profile
    • http://www.silicontechnix.com
shutdown error
« Reply #3 on: May 11, 2006, 01:52:23 AM »
Hi,

I used shutdown in form_unload and never got such problem

Private Sub Form_Unload(Cancel As Integer)
IaxClientOcx1.Shutdown
End Sub

It might be some timer or your VB function which is using the control (or any control\'s function or property) after it is terminated and shutdown.

I removed the license screen from init() and place it in system tray, thats why system tray is implemented, I think it is not removed properly when it is terminated, i am working on it, and hope i can fix it.

Thanks and Regards,
Babar Shafiq Nazmi.
« Last Edit: January 01, 1970, 05:00:00 AM by babar »
....God is the greatest Programmer....

http://www.silicontechnix.com

Offline Babar Shafiq Nazmi

  • Administrator
  • Senior Member
  • *****
  • Posts: 151
  • Karma: +87/-0
    • View Profile
    • http://www.silicontechnix.com
shutdown error
« Reply #4 on: May 16, 2006, 06:29:55 PM »
Fabio,

You are right, in VB systemtray icon is crashing the application when it is used in IDE.

I will fix the system tray thing. Thanks for the update.

Regards,
Babar Shafiq Nazmi.
« Last Edit: January 01, 1970, 05:00:00 AM by babar »
....God is the greatest Programmer....

http://www.silicontechnix.com

 

Page created in 0.252 seconds with 15 queries.