question 1:how to run createthread in vb6 ide,for support show form1
i run createthread in vb6 ide,it's successful,but can't show form
(how to fix?),maybe use not the same "NewVBHeader_Heap"
NewVBHeader_Heap=HeapAlloc(hHeadersHeap, HEAP_ZERO_MEMORY, lSizeOfHeaders)
we need new lSizeOfHeaders?
or need other way?
for test,it's support com object like "adodb.stream"
question2: how to debug thread in ide?
it's can suspended, how to run on?
use f5 or f8 or can't run
Quest3:if i use "end " in thread,APPCATION WILL BE collapse(ERR),WHY?
Code:
Dim f As Form1
Set f = New Form1
f.Show 1
VBDllGetClassObject VarPtr(App.hInstance), 0, VBHeader, 0&, Iid, 0 '
VBDllGetClassObject VarPtrHModule, 0, NewVBHeader_Heap, 0&, Iid, 0 '[/CODE]
error from "VBDllGetClassObject":
Signature of question:
Problem event name: APPCRASH
Application name: vb6.exe
Application version: 6.0.97.82
Application timestamp: 403acf6c
Fault module name: msvbvm60. DLL
Fault module version: 6.0.98.15
Fault module timestamp: 49b01fc3
Exception code: c0000005
Exception offset: 000044da
OS version: 6.3.9600.2.0.0.256.4
Locale ID: 2052
Other information 1: ac05
Other information: 2 ac0507478d1c5bd693cfc4fe3987e900
Other information 3: ac05
Other information 4: ac0507478d1c5bd693cfc4fe3987e900
'===========
chinese:问题签名:
问题事件名称: APPCRASH
应用程序名: VB6.EXE
应用程序版本: 6.0.97.82
应用程序时间戳: 403acf6c
故障模块名称: MSVBVM60.DLL
故障模块版本: 6.0.98.15
故障模块时间戳: 49b01fc3
异常代码: c0000005
异常偏移: 000044da
OS 版本: 6.3.9600.2.0.0.256.4
区域设置 ID: 2052
其他信息 1: ac05
其他信息 2: ac0507478d1c5bd693cfc4fe3987e900
其他信息 3: ac05
其他信息 4: ac0507478d1c5bd693cfc4fe3987e900