PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Anne Perrea on May 12, 2010, 03:42:15 PM

Title: program crashes after adding datetimepicker
Post by: Anne Perrea on May 12, 2010, 03:42:15 PM
I have written a program that while using static demo data runs fine when I add a datetimepicker to the form the program crashes. Any ideas? I have removed the control and the program runs fine. add it back on and it crashes.
Title: Re: program crashes after adding datetimepicker
Post by: Paul Squires on May 12, 2010, 09:27:12 PM
Do you mean that FireFly itself crashes when you add a datetimepicker to the form during design time, or does your program crash when you run that program with the datetimepicker added?
Title: Re: program crashes after adding datetimepicker
Post by: Anne Perrea on May 13, 2010, 11:08:41 AM
the program crashes when I run it with the control added to the form. Even if the program doesn't use the control.
Title: Re: program crashes after adding datetimepicker
Post by: Paul Squires on May 13, 2010, 01:15:10 PM
That is odd. Can't say that I know what the reason for that would be. Does the program run successfully on other computers? Is it possible to send me a copy of the project to see if there is anything FireFly related that could be the problem?
Title: Re: program crashes after adding datetimepicker
Post by: Anne Perrea on May 13, 2010, 04:10:43 PM
 Here is my program. Let me know what you find.
Anne

(Edit: Attachment removed by Administrator)
Title: Re: program crashes after adding datetimepicker
Post by: Rolf Brandt on May 13, 2010, 04:11:06 PM
Would be interesting to see which OS Anne is running and the version of MSCom Controls.
Title: Re: program crashes after adding datetimepicker
Post by: Rolf Brandt on May 13, 2010, 07:40:48 PM
I am getting an error that ddoc32.dll is not installed.
Title: Re: program crashes after adding datetimepicker
Post by: Paul Squires on May 13, 2010, 10:29:21 PM
There were two missing DLL's but when I added them the Project1.exe program executed perfectly and the DateTimePicker showed with no crashing.

Must be a Windows operating and/or MS Controls version.... not sure what else it could be..... virus scanner or something in the background interfering.
Title: Re: program crashes after adding datetimepicker
Post by: Anne Perrea on May 14, 2010, 09:48:59 AM
I am running XP Pro sp3 and the mscomm32.ocx version is 6.081.69
Title: Re: program crashes after adding datetimepicker
Post by: Brian Chirgwin on May 14, 2010, 10:21:16 AM
I have MSComm32.ocx 6.1.98.13
I believe this was installed with an update of MSVB6

Try installing the following:

http://www.microsoft.com/downloads/details.aspx?FamilyID=7b9ba261-7a9c-43e7-9117-f673077ffb3c&displaylang=en

Your application works fine on my machine once I installed the required DLLS.
Title: Re: program crashes after adding datetimepicker
Post by: Paul Squires on May 14, 2010, 11:23:07 AM
I removed Anne's attachment because it contained some of her private authorization codes.

Anne - maybe you can create a new, test project that just uses the DateTimePicker so that people here can test it for you.

Title: Re: program crashes after adding datetimepicker
Post by: Paul Squires on May 14, 2010, 11:28:01 AM
I just tried the program on Windows XP Pro SP3 with MScomm32.ocx version 6.1.97.82 and it worked fine.
Title: Re: program crashes after adding datetimepicker
Post by: Cho Sing Kum on May 14, 2010, 02:30:15 PM

I am lost here.

I thought FF does not use OCXes to create controls but instead uses the DLLs?

Perhaps Comctl32.dll for the common controls?

And Comctl32.dll is a Windows system file and is not be updated with the VB6 runtime or VB6 service pack?

I think MSComm32.ocx is for communication not common controls.
Title: Re: program crashes after adding datetimepicker
Post by: Paul Squires on May 14, 2010, 02:52:13 PM
Yes Cho you're exactly right. FF uses the DLL, not the OCX. Not sure what I was thinking earlier. The version of ComCtl32.dll that I have on my WinXP machine is 5.82.2900.5512
Title: Re: program crashes after adding datetimepicker
Post by: Anne Perrea on May 28, 2010, 10:02:26 AM
This problem was fixed by reloading windows
Title: Re: program crashes after adding datetimepicker
Post by: Paul Squires on May 28, 2010, 11:19:57 AM
Thanks for letting us know.

Happy that you were able to fix it because I was at a complete loss as to why it would not work.