View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000097 | JEDI VCL | 00 JVCL Components | public | 2002-06-02 02:39 | 2002-06-05 09:25 |
Reporter | grenzi_r | Assigned To | user72 | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000097: TJvAddPrinter causes a REBOOT | ||||
Description | When I executed this dialog an AV appeared and I had to reboot my Windows!! But if I call this dialog manually via the start menu everything works fine! It doesn´t work on XP either (But my girl friend doesn´t have not to reboot her PC because it is XP :-) The problems described can be seen in the example application which is at the yahoo group (http://groups.yahoo.com/group/JVCL-Developers/files/SampleApplication_Beta_2.zip) My configuration: Delphi 5 German professional with SP1 installed. OS: Win 95b. | ||||
Tags | No tags attached. | ||||
|
This is due to the code below: function ItemIDListCreate(const Allocator: IMalloc; const Size: Integer): PItemIDList; begin Result := Allocator.Alloc(Size); if Result <> nil then FillChar(Result, Size, 0); end; should be: function ItemIDListCreate(const Allocator: IMalloc; const Size: Integer): PItemIDList; begin Result := Allocator.Alloc(Size); if Result <> nil then FillChar(Result^, Size, 0); end; |