Solved

VB freezes while compiling

Posted on 2009-07-02
4
193 Views
Last Modified: 2012-05-07
I have a project that I have compiled many times in the past without incident that is now freezing when I try to recompile it.  None of the code has changed.  I can start the program from VB without any problems.  I tried 'Start with Full Compile' and that also runs fine.  I also tried starting a new project and readding all the forms, modules, etc to that and saving it... same problem.  It goes as far as creating all the .obj files, then nothing.
I can compile other projects without any problems, so I am assuming the problem is within one of the objects, but how do I find out where?  Help please!
0
Comment
Question by:jmoran18251
  • 2
  • 2
4 Comments
 

Author Comment

by:jmoran18251
ID: 24767170
By removing one object at a time and trying to compile the project, I have narrowed the problem down to one of the forms, but I still don't know what the issue is.  It is certainly the largest form in the project... maxed out on components, but it has always compiled without any problems.
0
 
LVL 20

Accepted Solution

by:
alainbryden earned 500 total points
ID: 24794615
Can you give more details for the form? Maybe provide the hidden .Designer.VB file associated with that form. It could be useful in determining elements that might cause hangs (for instance, an element that is tied to a network resource that is no longer available.)

--
Alain
0
 

Author Closing Comment

by:jmoran18251
ID: 31599341
Not sure what the issue was, but after giving up for the day and trying to build the project again the next day... it worked.  Thanks for the input.
0
 
LVL 20

Expert Comment

by:alainbryden
ID: 24804886
You might want to check for a
'If (Today() = "Tuesday") Then Throw Error()' :p

Glad it worked out for you.

--
Alain
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now