Runtime Error 6 in MDI Project: Any ideas ??? 
Author Message
 Runtime Error 6 in MDI Project: Any ideas ???

Hello All,

I have the following Problem: Anybody out there with some clues ??

I have a multiple document project (developed in VB5 SP3) that is able to
open an MDI-child upon button click.
I have implemented an error handler to handle all exceptions.

The  program opens 4 childs with no errors.
The 5th open-click results in a runtime error 6 "Overflow" even though I
have an error handler that should deal with these errors.

This is the code snibbet:
'#############################

 On Error GoTo ErrorHdl:

   MsgBox "entry"

   Set frmD = New frmDocument
   frmD.ProjectName = ProjectName
   frmD.Caption = ProjectName
   frmD.Show

   MsgBox "exit"

'##############################

The application does not return to the "exit" point on the 4th open but
stops with RTE6 instead.

Any help is highly appreciated.

Ole



Fri, 23 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???

Quote:
>The  program opens 4 childs with no errors.
>The 5th open-click results in a runtime error 6 "Overflow" even though I
>have an error handler that should deal with these errors.

I suspect the error occurs in the Form_Load event -- perhaps paste the code
from there.

Doug.



Fri, 23 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???
Hello Doug.
I have set a breakpoint to the form load event but at the last call (the 4th
one) this breakpoint never get reached. It must be a problem somewhere in
the Windows depth - I'm affraid. VB simply stops working and dives down to
some depth and does not return.

Ole



Fri, 23 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???
Hi Ole:

Quote:
>I have set a breakpoint to the form load event but at the last call (the
4th
>one) this breakpoint never get reached. It must be a problem somewhere in
>the Windows depth - I'm affraid. VB simply stops working and dives down to
>some depth and does not return.

Can you reproduce a sample app the reproduces the problem?  The app should
have no code in it, except to load new form instances.  If you can get that
far, then you can start cutting and pasting portions of your code bit by
bit, testing each time after you add some code -- eventually you should add
the code that is causing the problem.

Doug.



Fri, 23 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???
Hello Doug,

Thanks. Yes I need to follow that road but my application is REALY huge and
fairly complex (It is a complete Development IDE for PalmPilot SW
development) and this will certanly take a while. I'll let you know about
the results once I have found out more details.

Thanks
Ole



Sat, 24 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???
This might seem a silly question, but is frmD.ProjectName ?

The code seems to work for me except for this little detail.

vmlf.

Quote:

> ...
>This is the code snibbet:
>'#############################

> On Error GoTo ErrorHdl:

>   MsgBox "entry"

>   Set frmD = New frmDocument
>   frmD.ProjectName = ProjectName
>   frmD.Caption = ProjectName
>   frmD.Show

>   MsgBox "exit"

>'##############################
> ...



Sat, 24 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???
Sorry, missed a word in the last post that changes the meaning of the
message.
What I wanted to say was:
What id frmD.ProjectName?

vmlf.

Quote:

>This might seem a silly question, but is frmD.ProjectName ?

>The code seems to work for me except for this little detail.

>vmlf.


>> ...
>>This is the code snibbet:
>>'#############################

>> On Error GoTo ErrorHdl:

>>   MsgBox "entry"

>>   Set frmD = New frmDocument
>>   frmD.ProjectName = ProjectName
>>   frmD.Caption = ProjectName
>>   frmD.Show

>>   MsgBox "exit"

>>'##############################
>> ...



Sat, 24 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???
The frmD.ProjectName is a public string inside the MDIChild that holds the
projectname (that comes from the command line argument) that has to be
worked on in THAT particular MDI child.

The problem I have happens even when I remove this line of code and set this
to be "noname1.prj" or similar

Cheers
Ole



Sat, 24 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???
What is in your error handler?
Quote:

>Hi Ole:

>>I have set a breakpoint to the form load event but at the last call (the
>4th
>>one) this breakpoint never get reached. It must be a problem somewhere in
>>the Windows depth - I'm affraid. VB simply stops working and dives down to
>>some depth and does not return.

>Can you reproduce a sample app the reproduces the problem?  The app should
>have no code in it, except to load new form instances.  If you can get that
>far, then you can start cutting and pasting portions of your code bit by
>bit, testing each time after you add some code -- eventually you should add
>the code that is causing the problem.

>Doug.



Sat, 24 Feb 2001 03:00:00 GMT  
 Runtime Error 6 in MDI Project: Any ideas ???
Here is the code of my error handler but if I set a breakpoint to the "If
Err.Number" line the breakpoint NEVER gets triggered.

ErrorHdl:

   If Err.Number = 713 Then
      MsgBox "Could not find OCX File", vbOKOnly, "ERROR"
      Exit Sub
   Else
      MsgBox  "Error on open Project occured.
   End If

End Sub



Sat, 24 Feb 2001 03:00:00 GMT  
 
 [ 10 post ] 

 Relevant Pages 

1. Runtime Error 6 in MDI Project: Any ideas ???

2. Runtime Error 6 in MDI Project: Any ideas ???

3. HELP with MDI Project Error

4. MDI Child initialization problem (Runtime Error 6 Overflow)

5. MDI form and MDI Child in different projects

6. MDI form and MDI Child in different projects

7. Project Runtime Errors

8. Project dir Runtime VS. Project dir Designtime

9. Project dir Runtime VS. Project dir Designtime

10. Access-Dxf-Design project idea

11. IDEA: Project to help new people to VB

12. IDEA: PROJECT TO HEL?????

 

 
Powered by phpBB® Forum Software