microsoft / microsoft/vscode-cpptools

a confusing behaviour in c++ extension

Aperta
#3,356 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@WardenGnaw ci sta già lavorando.

Dal 25/3/2019.

debugger
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Issue Type: Bug

I worte a program which applies for memory twice.when I debug it in vscode,it reported an exeption at the seccond application for memory.But when I run this compiled executive file in the work directory,it behaved right.Here is the function I used twice to applying for memory:
void init_list(struct arraylist * list){
list->list = (int *) malloc(5 * (sizeof 1));
if(list->list == NULL){
printf("内存分配错误\n");
}
list->length = 0;
list->list_size = 5 * (sizeof 1);
}

Extension version: 0.22.1
VS Code version: Code 1.32.3 (a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4, 2019-03-14T23:43:35.476Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 7.89GB (4.17GB free)
Process Argv
Screen Reader no
VM 57%

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.