Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Does this exception get thrown everytime you close the form? If so does a particular line generate the error?

Is there any information to indicate which component raised this exception?

 

 

there is no single line of code that causes this error. on the form frmExtract, after the End Sub statement of cmdExtract_click, i get this error. when i click break, the pointer highlights the main declaration for frmMain like this:

 

Imports C1.C1Zip

Public Class frmMain 'This is where the error is (a green arrow in the where breakpoints are and green highlight)
   Inherits System.Windows.Forms.Form

  'Form design code

   Dim Files() As ZipInfo.Info

 

this happends on a number of my programs (3 so far) and i can't figure out the problem (the error is a bit vague). also, i figured out what the visual style problem. i had to declare application.enablevisualstyles() before the initialize component in EACH form for it to work.

 

thanks for all your help

-matt

Posted
Do any of these applications have anything in common (same 3rd party components etc - are you using the Zip component in any of the others for example)?

 

 

No, these applications are all different (Media catalog, zip, applicaion bar). however, they DO have something in common. all of them throw this exception when i close or get rid of a form that was shown using .showDialog(). on other apps, this doesn't happen (even with showdialog) so im confused as to the cause of this error.

 

once again thanks for the help (and quick responses)

-matt

  • 10 months later...
Posted

Use the Skybound VisualStyles control instead of Microsofts borked attempt at Application.VisualStyles, which causes the SEHException.

 

http://www.skybound.ca

 

The Visualstyles component is free, and incredibly easy to use. Plus, the main developer actually answers tech questions himself in the forums - usually within a few hours at most.

 

B.

Posted

i need a way to do it without using any plug-ins or anything like that. i read that there's some way to do it without using EnableVisualStyles and using a manifest instead. only problem is that i haven't the faintest idea what a manifest is, or how to make one!

 

any help?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...