I am new to writing OCX's/windows programming but have managed to modify an existing OCX with new functionality. But when I build the OCX in release mode and try to add this OCX with a simple visual basic project, it crashes upon exiting the project. But if I build the OCX in debug mode and do the same, it does not crash. Do you have any idea, why?? Also the debug version of the OCX is having problem registering on a machine other than it was built on with an error "Debug Assertion Failed. File: oletyplb.cpp line 32". But if we build the OCX on that machine and then register it, then it's okay. I don't know if both the above problems are related or different. Any help will be appreciated. Thanks, kshah |
6/8/2006 8:59:32 AM Re: Error in OCX |
<mail2kinashah@yahoo.com> wrote in message news:1149772543.120727.198670@j55g2000cwa.googlegroups.com... Debug mode will automatically zero uninitialized variables for you. Release mode won't. This is one of the common reasons Release mode will crash when Debug mode won't. The bottom line is, you have a bug that you need to track down. It's probably not related, but you need to get rid of your bugs first. Before moving your OCX to a target machine, make sure that any dependent DLL's are also moved. See http://www.dependencywalker.com for a tool to help identify dependent DLL's. Brian |
OCX's/windows regsvr32
最新推荐文章于 2023-03-24 23:41:42 发布